This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JBOSS-4.2.3 Distributed Transactions 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 » Products » JBoss/WildFly
Bookmark "JBOSS-4.2.3 Distributed Transactions" Watch "JBOSS-4.2.3 Distributed Transactions" New topic
Author

JBOSS-4.2.3 Distributed Transactions

ravikanth reddy
Ranch Hand

Joined: Aug 18, 2009
Posts: 43
Hello,

We are using JBOSS-4.2.3, java1.5,oracle10g and ejb2.0.

We have two Servers are running with different JVM hosted in different physial machines. In the first server Bean A is starting the transaction with transaction attribute (RequiresNew) and calling bean B hosted in same application server with the transaction attribute (Supports) and involving many databases and making the remote call to Bean C (RequiresNew) hosted in different application server. The problem is, when the Bean C (Remote Call) is throwing error, we are trying to rollback complete transaction in both the servers. But the roll back is not happening in the Server A it is perfectly fine in Server B.
Even I have changed the Bean C is transaction attribute to Required for propagating the transaction from Server A, Still the problem is exist.

Exception propagation is proper and we are catching the exception in Server A. But the transaction is commiting from Bean A and Bean B.

We are using XA transactions in both the servers.

In case of error, I want to rollback the complete transaction in both the servers. Is it possible? Can anyone help me to share the knowledge or help me to resovle the problem?

Is there any limitatation with JBOSS-4.X.X for distributed transaction?


Thanks a lot in advance.


Ravikanth Malyala
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9924
    
158

You'll need JTS for that. See if this helps http://community.jboss.org/wiki/TransactionPropagationwithJBoss

[My Blog] [JavaRanch Journal]
ravikanth reddy
Ranch Hand

Joined: Aug 18, 2009
Posts: 43
Thanks a lot Jaikiran.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JBOSS-4.2.3 Distributed Transactions
 
Similar Threads
My Study Notes
please answer this 128 questions for WLS. Urgently!
J2EE Recommended Reading
ICE 287 answers for WebSphere 5.0
Transaction management