Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transactionof SFSB  RSS feed

 
Chandan Ghosh
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please tell me why is SFSB allowed to open transaction across methods calls??
And can you take up a scenario where we might want to do this?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can thing of the following in which you implement a shopping cart using a stateful session bean , in that case you might have variuos methods to take care of various stuffs , like adding items , taking care of persisting shipping information of the customer , credit card transaction , reducing the count of item shopped in the inventory database and offcourse all this to happen under a single transsaction.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!