What is the difference between a service locator pattern and EJBHomeFactory pattern?
To my understanding both caches the EJBHome object to reduce to overhead involved in continous lookup of EJBHome.
Then why do have two patterns...? can any one help me understanding this?
-
diff b/w service locator and EJBHomeFactory pattern (3 messages)
- Posted by: Senthil Balakrishnan
- Posted on: April 28 2004 00:46 EDT
Threaded Messages (3)
- diff b/w service locator and EJBHomeFactory pattern by Paul Strack on April 28 2004 11:13 EDT
- diff b/w service locator and EJBHomeFactory pattern by Raj X on April 28 2004 17:54 EDT
- diff b/w service locator and EJBHomeFactory pattern by Sanjaya Ganesh on April 28 2004 23:18 EDT
-
diff b/w service locator and EJBHomeFactory pattern[ Go to top ]
- Posted by: Paul Strack
- Posted on: April 28 2004 11:13 EDT
- in response to Senthil Balakrishnan
It is not unusual to have two pattern names describing the same basic thing. There is no central "Pattern Standard Body", and frequently members of the programming community come up with the same idea, but give it a different name:
Value Objects and Data Transfer Objects
Inversion of Control and Dependency Injection
And many others ... -
diff b/w service locator and EJBHomeFactory pattern[ Go to top ]
- Posted by: Raj X
- Posted on: April 28 2004 17:54 EDT
- in response to Senthil Balakrishnan
Hi Senthil,
Looks like Service locator pattern was designed for more than just EJB Home look up/caching..it may be also used to look up JMS components etc
http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html
Raj. -
diff b/w service locator and EJBHomeFactory pattern[ Go to top ]
- Posted by: Sanjaya Ganesh
- Posted on: April 28 2004 23:18 EDT
- in response to Senthil Balakrishnan
What is the difference between a service locator pattern and EJBHomeFactory pattern?To my understanding both caches the EJBHome object to reduce to overhead involved in continous lookup of EJBHome.Then why do have two patterns...? can any one help me understanding this?
Service locator as name indicates is a locator cache for JNDI looked up services / for that matter any service who lookup is costly. One specific application for that pattern in J2EE world is EJB Home lookup.
-Sanjay