Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CMT in 2 App Server  RSS feed

 
arvind d
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have 1 session bean deployed in A Server (Application Server)

another
session bean in B Server (Application Server)

When i call a bean from A server to B server

Is tx is propagated (from A to B) ?

Do i need 2 phase commit driver ?

Whether tx Manager in Server A controls the transa in B server ?
thanks and Reg
Arvind D
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on the application server. For example, WebLogic supports this type of model with the transactional context getting propagated across all WLS Servers involved in the transaction (however WLS trust must be established in order for this to work).

For other application servers you will need to read the vendor-specific information. If you are going across different type of Application Servers this is not going to work.

BTW, be careful when deciding to use a feature like this. It is generally a very bad idea to have a single transaction to span remote calls.
[ April 15, 2006: Message edited by: Chris Mathews ]
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"arvindu"

One more thing... thanks for joining JavaRanch, please take some time to review the JavaRanch Name Policy then update your publicly displayed name in your profile so that it complies.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!