Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within EJB and other Jakarta /Java EE Technologies
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Practice Tests for OCP Java 17 Certification Exam (1Z0-829)
this week in the
OCPJP
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Liutauras Vilda
Sheriffs:
Rob Spoor
Junilu Lacar
paul wheaton
Saloon Keepers:
Stephan van Hulst
Tim Moores
Tim Holloway
Carey Brown
Scott Selikoff
Bartenders:
Piet Souris
Jj Roberts
fred rosenberger
Forum:
EJB and other Jakarta /Java EE Technologies
What is userTranaction and when we should use it?
raminaa niilian
Ranch Hand
Posts: 551
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
Thank you for reading my post.
can you please tell me whether userTransaction is just useable for EJBs or we can use it inside some
java
classes that call two operations on two databases ?
I mean for XA transactions?
Thanks
Debu Panda
author
Posts: 100
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
UserTransaction interface is defined by JTA and can be used from any classes e.g.
servlet
or a helper class.
If you are using BMT with
EJB
then you have to use this interface to manage your transaction
-Debu
Author: EJB 3 In Action (
http://manning.com/panda
)
raminaa niilian
Ranch Hand
Posts: 551
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
Thank you very much for reply.
here is my scenario and i am looking for a solution for it
I have 2 web services each has one web methods in my application server
one web service will handle database and the other one will handle JMS
i have a command line clinet that use this two web service to insert some data to database and some message to JMS queue.
Now i should make it transaction, i mean both of database and JMS operation should work in context of one transaction.
my web services are inside a war file (servlet based endpoint?) and i am not using EJBs.
Now please tell me any guidline that you know to resolve this problem.
Thanks
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Regarding creating object
FormBean for two action classes.
Creating Databases and Roles from Enterprise Application
Choosing ESB
one statement for two databses?
More...