JTA/XA [message #916057] |
Tue, 18 September 2012 09:17  |
Eclipse User |
|
|
|
I've been poking around on the internet and found almost no documentation about using Eclipselink in a JTA context. My current project involves Activiti and a business model using Eclipselink, both stored in separate databases and I need JTA/XA to sync the transactions.
Did I miss any documentation on setting up Eclipselink with, for example, Bitronix?
Tom
|
|
|
|
Re: JTA/XA [message #916143 is a reply to message #916095] |
Tue, 18 September 2012 11:55   |
Eclipse User |
|
|
|
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
|
|
|
Re: JTA/XA [message #916152 is a reply to message #916143] |
Tue, 18 September 2012 12:08  |
Eclipse User |
|
|
|
On 2012-09-18 17:55, tbee wrote:
> 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.
Success. When I've got Activiti hooked up as well, I'll post my code. Probably someone else might find that interesting.
Tom
|
|
|
Powered by
FUDForum. Page generated in 0.04577 seconds