Java, JMS, and XA

I need an example of how to use XA, but NOT within an app server, but within a samll  app.

So I do not need JTA, EJB, etc.

Can some one please provide a link to an XA java plus JMS example of how to use XA ?

Thanks
Los Angeles1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mccarlIT Business Systems Analyst / Software DeveloperCommented:
So I do not need JTA, EJB, etc.
EJB is not necessary but JTA is, if you want XA transactions. I don't know of any XA implementations on Java that aren't built on top of JTA.

To be able to provide any sort of meaningful example, you will need to provide more information...

What JTA/XA implementation do you want to use? I am assuming that you don't know from what you said above. Normally, it is the app server that provides this implementation but if you require it from a standalone app, you need to provide a separate implementation. There are a number of options, Atomikos, JbossTS, Bitronix, JOTM, SimpleJTA. I have no experience with any of them, so I can't recommend any one of the other but I would probably investigate them in the order that I gave above. There may be others to be found by googling for "standalone jta implementations".

What JMS provider are you using? eg. ActiveMQ, etc. Are they XA-compliant? (I know that ActiveMQ is at least partially compliant)

What are the other resources that are participating in the XA transaction, eg. databases, other JMS providers, etc? And tell us the specifics of those resources, ie. if databases are involved, what databases, eg. Oracle, etc.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.