Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Does EclipseLink support OracleXADataSource?
Does EclipseLink support OracleXADataSource? [message #648726] Fri, 14 January 2011 09:27 Go to next message
Johnny is currently offline JohnnyFriend
Messages: 1
Registered: January 2011
Junior Member
According to JPA2.0 Spec, the property of "javax.persistence.jdbc.driver" in persistence.xml should be a full name of jdbc driver. But, why is "oracle.jdbc.xa.client.OracleXADataSource" also correct for this property? OracleXADataSource is a datasource, not jdbc driver, right?

Your answers will be very appreciated.
Re: Does EclipseLink support OracleXADataSource? [message #649078 is a reply to message #648726] Mon, 17 January 2011 14:42 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

If you want to use a DataSource you need to specify the <jta-data-source> or <non-jta-data-source> tags, not the driver.

For this to work, you need to have your DataSource registered in JNDI.

If you do not have access to JNDI, then you could use a SessionCustomizer to set a DataSource instance directly on your Session's DatabaseLogin using the JNDIConnector with a DataSource instance instead of a JNDI name.


James : Wiki : Book : Blog : Twitter
Previous Topic:Need help with Derby JAVA_OBJECT and JPA
Next Topic:Problem with @DiscriminatorColumn(discriminatorType=DiscriminatorType.CHAR,)
Goto Forum:
  


Current Time: Sat May 11 00:45:03 GMT 2024

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

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

Back to the top