• 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:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

JBOSS-4.2.3 Distributed Transactions

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'll need JTS for that. See if this helps http://community.jboss.org/wiki/TransactionPropagationwithJBoss
 
ravikanth reddy
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Jaikiran.
 
no wonder he is so sad, he hasn't seen this tiny ad:
Paul Wheaton's 16th Kickstarter: Gardening playing cards for gardeners and homesteaders
https://coderanch.com/t/889615/Paul-Wheaton-Kickstarter-Gardening-playing
reply
    Bookmark Topic Watch Topic
  • New Topic