Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Configure JTA Datasouce in Persistence.xml
Configure JTA Datasouce in Persistence.xml [message #666065] Mon, 18 April 2011 16:56 Go to next message
Sean  is currently offline Sean
Messages: 5
Registered: April 2011
Junior Member
I am using Eclipse Helios Service Release 2.

I have created a Database Connection to a MySQL database and the connection tests without error.

I am attempted to configure a Persistence Unit with a Transaction Type of JTA.

My question is: What do I enter into the JTA Datasource field? I am also unsure what steps might be required to configure JNDI.

Any pointers appreciated.

KInd regards

Sean
Re: Configure JTA Datasouce in Persistence.xml [message #666353 is a reply to message #666065] Wed, 20 April 2011 01:53 Go to previous message
Sean  is currently offline Sean
Messages: 5
Registered: April 2011
Junior Member
Finally sorted.

The solution was to create two entries under Resources\JDBC in Glassfish. The first was to create a Connection Pool, the second was to create a JNDI entry under Resources\JDBC\JDBC Resources.

This took some fiddling and guessing. I presume that there must be a better way! Hope to find this out one day...
Previous Topic:dbws pl/sql with custom schema
Next Topic:Persisting new object with references to detached entities - fails
Goto Forum:
  


Current Time: Thu Aug 21 22:08:03 EDT 2014

Powered by FUDForum. Page generated in 0.08114 seconds