Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Same Transaction in diferent component  RSS feed

 
Haroldo Nascimento
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a doubt about transaction. I need exchange message between two components located in the diferent container (JBOSS).
Is possible control the transaction of all operation below:

AppA
start trx
do anythink (how update database)
AppB.syncDB (call RPC using SOAP of other application - service of Web Service)
commit trx or rollback

The commit or roolback must be execute of all operation in the AppA and the service of AppB. How I can create I unique transaction for 2 diferent applications. It is possible ?

thanks
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So far as I know, transactions aren't propogated to web service since they're just HTTP requests (also, they may not even be managed by the same container that's managing the transaction). Maybe you need to look into using something else to achieve the same functionality.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!