|
Re: JTA/XA [message #916095 is a reply to message #916057] |
Tue, 18 September 2012 14:17 |
|
There is some information on JPA and JTA here,
http://en.wikibooks.org/wiki/Java_Persistence/Transactions
JPA is part of the EJB specification which dictates integration with JTA.
What Java EE server are you using?
Normally JTA integration is set through the "eclipselink.target-server" persistence unit property. EclipseLink supports WebLogic, Glassfish, JBoss, WebSphere, OC4J, NetWeaver.
EclipseLink also has transaction support for Jotm.
If you are using another server, you will need to create your own ServerPlatform subclass.
James : Wiki : Book : Blog : Twitter
|
|
|
Re: JTA/XA [message #916143 is a reply to message #916095] |
Tue, 18 September 2012 15:55 |
Tom Eugelink Messages: 825 Registered: July 2009 |
Senior Member |
|
|
On 2012-09-18 16:17, James Sutherland wrote:
> What Java EE server are you using?
>
> Normally JTA integration is set through the "eclipselink.target-server" persistence unit property. EclipseLink supports WebLogic, Glassfish, JBoss, WebSphere, OC4J, NetWeaver.
> EclipseLink also has transaction support for Jotm.
>
> If you are using another server, you will need to create your own ServerPlatform subclass.
LOL. Yes, well, ATM I'm developing in test driven mode, so I'm writing a unit test. Using Eclipselink in JTA in a unittest is even a bigger challenge, that could use some documentation as well.
But I've got a ServerPlatform and JTATransactionController. Getting the InitialContext setup was tough; I'm including parts of Glassfish to get a javaURLContextFactory set up. But I'm making progress, right now I'm stuck with IllegalStateException telling me I cannot use an EntityTransaction in JPA. Logical of course, so now I need to figure out how to start the transaction using Bitronix.
Slowly, but surely.
Tom
|
|
|
|
Powered by
FUDForum. Page generated in 0.04133 seconds