|Re: JTA/XA [message #916143 is a reply to message #916095]
||Tue, 18 September 2012 15:55
| Tom Eugelink
Registered: July 2009
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.
Powered by FUDForum
. Page generated in 0.11996 seconds