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

[306 byte] By [saravananppsa] at [2007-10-3 6:56:20]
# 1
I'm not sure I understand your question.If you meant the particular use of the pattern with JNDI lookup, that has been replaced by the DI (Dependency Injection) pattern in EJB 3.0.
karma-9a at 2007-7-15 1:48:20 > top of Java-index,Other Topics,Patterns & OO Design...
# 2
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
saravananppsa at 2007-7-15 1:48:20 > top of Java-index,Other Topics,Patterns & OO Design...
# 3

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(.).

karma-9a at 2007-7-15 1:48:20 > top of Java-index,Other Topics,Patterns & OO Design...