VwpFAQJBossJPA

How do I configure a Java Persistence API web application to work in JBoss?

Description: Because JBoss is not an EE5 server, the TopLink Essentials library is required in web applications deployed to it. The TopLink Essentials library provides JPA functionality for the EJB 3.0 Reference Implementation.

Workaround: Add the TopLink Essentials library to an application as follows:

  1. Copy your database's JDBC driver to the web application's lib directory.
  2. Copy toplink-essentials.jar and toplink-essentials-agent.jar from your Sun Java System Application Server installation's lib subdirectory to the lib directory of the web application.
    If you do not have Sun Java System Application Server, download it from Sun Developer Network's Java EE Downloads page.
  3. Edit persistence.xml to include:
<property name="toplink.jdbc.driver" value="<jdbc-driver>"/>
<property name="toplink.jdbc.url" value="<jdbc-url>"/>
<property name="toplink.jdbc.password" value="<jdbc-password>"/>
<property name="toplink.jdbc.user" value="<jdbc-user>"/>
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo