Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] JTA and driver class name


we use OpenJPA implementation in Weblogic 10.3 cluster environment but we want to migrate to EclipseLink (Oracle TopLink). But there is one stopper.

We use DB connection (DataSource) maped as global JNDI with custom user access (only one internal user can access this JNDI resource). Therefore we can not use direct JNDI string in persistence.xml becase only described user can obtain connection instance from JNDI.

If we try use JTA and specify driver name EclipseLink JPA says:

"PersistenceUnitInfo ProjektPU has transactionType JTA, but doesnt have jtaDataSource"

Is there any way to specify transaction-type="JTA" without jta-data-source and use property

  <property name="eclipselink.jdbc.driver" value=" ... "/>

with own implementation driver class name which wrap obtaining DB connection from JNDI?


Zdenek Machac

Back to the top