Skip to main content


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 20:56 Go to next message
Sean  is currently offline Sean Friend
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 05:53 Go to previous message
Sean  is currently offline Sean Friend
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: Wed Apr 24 18:59:23 GMT 2024

Powered by FUDForum. Page generated in 0.02396 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top