Network Deployment (Distributed operating systems), v8.0 > Administer applications and their environment > Administer EJB applications > Administer applications that use the Java Persistence API > Configure JPA to work in the environment


Configure the default JTA and non-JTA data source JNDI names

The Java Transaction API (JTA) and non-JTA data sources to be used for an application can be specified through the <jta-data-source> and <non-jta-data-source> elements of the persistence.xml file within an EJB module.

If these elements are not configured in the persistence.xml file, then the default JTA and non-JTA data sources configured for the server are used. These values are null by default. However, the default JTA and non-JTA data source JNDI names to be used by applications running on this server can be defined using the admin console.


Procedure

  1. Open the admin console.

  2. Select Servers > Application server > server > Container Services.

  3. Click Default Java Persistence API settings.

  4. Select the Default JTA data source JNDI name or the Default non-JTA data source JNDI name field.

  5. Click Apply to save the configuration.


Configure the JPA default persistence provider

+

Search Tips   |   Advanced Search