Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between stateful session bean and stateless session bean.

 
Jingyi Wang
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me why "get a transaction reference, and call methods on it", "access another bean's methods" and "access a resource manager" are not availabe in ejbCreate (), ejbRemove()? ( But, in stateful bean, they are available. )

Thanks
 
Alex Sharkoff
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jingyi,

I think this post has a very good explanation for it:

http://www.coderanch.com/t/158984/java-EJB-SCBCD/certification/questions


Also you could search this forum for "meaningful transaction context or client security context" - should bring up several posts that you might find useful (the one specified above is one of them)

 
Jingyi Wang
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic