?
=?ISO-8859-1?Q?Halld=F3r_=CDsak_Gylfason?=
Hello
I am writing a java application that gets messages of a JMS Message
Queue, and writes data from the messages to a database. This should be
done logically in a single transaction , so two phase
commit/XATransaction is needed. I am a bit confused on how to do it
after having looked at all the JTA stuff.
Note that the application does not run inside an application server
but I still need some transaction services.
Is it really enough to obtain UserTransaction (Client side) from JNDI
and use that to manage the transaction, or do I have to go more low
level and interact with the transaction manager, to enlist the
XAResources?
Anyway... Has somebody expirence with writing similar application?
What transaction API did you use?
Regards, Halldor
I am writing a java application that gets messages of a JMS Message
Queue, and writes data from the messages to a database. This should be
done logically in a single transaction , so two phase
commit/XATransaction is needed. I am a bit confused on how to do it
after having looked at all the JTA stuff.
Note that the application does not run inside an application server
but I still need some transaction services.
Is it really enough to obtain UserTransaction (Client side) from JNDI
and use that to manage the transaction, or do I have to go more low
level and interact with the transaction manager, to enlist the
XAResources?
Anyway... Has somebody expirence with writing similar application?
What transaction API did you use?
Regards, Halldor