Two Laptop Bag*
The moose likes EJB and other Java EE Technologies and the fly likes Transaction propagation--- is it possible?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Transaction propagation--- is it possible??" Watch "Transaction propagation--- is it possible??" New topic
Author

Transaction propagation--- is it possible??

Sajid Moinuddin
Ranch Hand

Joined: Mar 19, 2005
Posts: 85
Suppose I have a plain java client code like this.

now, I want theBigFatMethod() to be transactional. The easiest solution would be if I could create a transaction context and pass it to all the methods. Is it logical to think this way?? Can I really share a transaction context across j2ee containers? Or is it a two phase commit that I need?? Any hints / links will be greately appriciated.
Regards,
Sajid.
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8903

I dont think transaction context can be propagated between servers of different vendors.


Groovy
Sajid Moinuddin
Ranch Hand

Joined: Mar 19, 2005
Posts: 85
Hi,
got the answer. transactions can be propagated across application server if the servers supports distributed transaction. transaction context propagation is the main concept of distributed Tx management and ejbservers that supports distributed transaction propagation must follow OMG1.1 protocol. So transactions context are propagated over iiop.
regards,
Sajid
 
Consider Paul's rocket mass heater.
 
subject: Transaction propagation--- is it possible??
 
Similar Threads
JTA Transaction in servlet
Identifying Database Locked scenario
Check to see if an entity is managed by the persistence context
caching remotes instead of homes in weblogic
getUserTransaction method