• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a stateless CMT session bean has to end the transaction before the method end??

 
mark ken
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a stateless CMT session bean has to end the transaction before the method in which it started ends??

is this true?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since its CMT the container will take care of the transaction boundary. So I guess thats true. With BMT however you better make sure you dont let transactions hanging around without closing them. Its legal to do so for stateful beans but not stateless beans.
 
mark ken
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but, my book say:for BMT session bean , developer need to make sure close transaction before the method end.
Why for CMT stateless session bean also need that?
I think for CMT bean we don't take care to end the transaction before the method end.

Originally posted by John Meyers:
Since its CMT the container will take care of the transaction boundary. So I guess thats true. With BMT however you better make sure you dont let transactions hanging around without closing them. Its legal to do so for stateful beans but not stateless beans.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think for CMT bean we don't take care to end the transaction before the method end.


Yes thats the container's problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic