I am looking for some articles from people who have used Entity EJB from within Session EJB (stateful or stateless).
- Posted by: Sean Kang
- Posted on: October 03 2002 17:13 EDT
I am concerned about using remote objects from within a remote object.
Using entity beans through a session facade implemented as a stateless/stateful session bean is a common solution.
About using remote objects from a remote object... For example, BEA WebLogic uses local (JVM) calls between two EJBs if they're located in the same JVM, which is basically the same as using a local EJB interface.
1 find out entity bean home interface
2 use home interface to create entity bean remote interface
3 call entity bean method by use remote interface
Using a Session Facade pattern reduces the coupling between client and business objects and reduces to n fro network traffic.The container maintains a pool of session beans improving performance.To avoid remote calls for data extraction use value objects to send across the network.