Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB restriction and getBusinessObject

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On p.600 about EJB restriction,
The enterprise bean must not attempt to pass this as an argument or method result. The bean must pass the result of SessionContext.getBusinessObject...


I think getBusinessObject() only works without illegalLoopBack exception when the singleton / stateless beans are deployed in the same container.

But this getBusinessObject() works without illegalLoopBack exception when all session bean (singleton/stateless/stateful) beans are deployed in the different containers, running
in different JVMs or when the beans are in different servers.

Correct me if I am wrong.

(EPractice Lab mock exam 2 has a question like this.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic