• Post Reply Bookmark Topic Watch Topic
  • New Topic

pattern for two phase commit?  RSS feed

 
Max Tomlinson
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm wondering what pattern to apply for an EJB that makes calls to multiple EIS systems (beyond the standard transactional EJB capabilities).
The main window of exposure appears to be the client which makes the EJB call: if it is HTTP, then a window exists since the connection can be broken on the return from the session bean to the client after a transaction has actually completed successfully.
One approach is that of 'compensating transaction' but quite frankly this xcares me since it seems to be a heavyweight solution that opens up a can of worms in backing out transactions already completed. Another is for the client to use RMI instead of HTTP.
You suggestions greatly appreciated!
Max Tomlinson
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!