Configuring 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 Enterprise JavaBeans (EJB) module.

About this task

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 Java Naming and Directory Interface (JNDI) names to be used by applications running on this server can be defined using the administrative console.

Procedure

  1. Open the administrative 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.



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Jan 16, 2013 3:37:33 AM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v700osgijpa&product=was-nd-mp&topic=tejb_jtajndi
File name: tejb_jtajndi.html