Service Locator Pattern - EJB 3.0 or Local version fo EJB 2.0
Hi All,
Hope so every body doing well, How do we handle this Service Locator Pattern,
If the EJB 2.0 contain Local interfaces or EJB 3.0?.Becuase the Handle might not there.Please help me.How do we go with this.Advance thanks any suggestion or information.
Thanks
- Saravanan
Hi Karma-9,But if we working with EJB 2.0 local interfaces.Then How we can do implement Service Locator pattern( JNDI Lookup with return EJBOjbect Handle ).Rgds,P.Saravanan
As opposed to using it with remote EJBs?
Here's the [url=http://java.sun.com/blueprints/code/jps131/src/com/sun/j2ee/blueprints/servicelocator/web/ServiceLocator.java.html] Sun blueprints implementation [/url] of the pattern.
Notice the difference between getLocalHome(.) vs. getRemoteHome(.).