• Post Reply Bookmark Topic Watch Topic
  • New Topic

Question about operations allowed in methods of stateless and stateful beans

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Can anyone tell me why ejbRemove and ejbCreate are allowed entreprise beans and resource manager access in stateful session beans and not in stateless session beans?

Thanks in advance,

Julien Martin.
 
srinivasan doraiswamy
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi julie
I am not getting ur question

srini
 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
In a session bean I have an instance variable of type SessionContext. This variable has a number of methods. If I invoke for example the getRollBackOnly from within the ejbcreate method I will get a IllegalStage exception. Do you see my point?
What I noticed is that, for stateful SBs you are allowed to access a resource manager within the ejbRemove and ejbCreate methods. The same is not true for stateless SBs.
Do you see my question?
Regards,
Julien.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!