Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » Does EclipseLink support OracleXADataSource?
Does EclipseLink support OracleXADataSource? [message #648726] Fri, 14 January 2011 04:27 Go to next message
Eclipse UserFriend
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 09:42 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Need help with Derby JAVA_OBJECT and JPA
Next Topic:Problem with @DiscriminatorColumn(discriminatorType=DiscriminatorType.CHAR,)
Goto Forum:
  


Current Time: Fri Jul 25 12:48:51 EDT 2025

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

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

Back to the top