• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB restriction and getBusinessObject

 
Himai Minh
Ranch Hand
Posts: 1400
8
  • 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.)
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!