Inside Scoop on J2EE : Tips and tricks on J2EE and Oracle Application Server by Debu Panda
Updated: 12/27/2004; 10:12:14 AM.

 

Subscribe to "Inside Scoop on J2EE" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 
 

Friday, November 05, 2004

Service Locator Design pattern is one of the best design patterns for those folks have a hate and love relationship with EJB. If you are a J2EE developer for long you must have used or heard of Service Locator Design Pattern.

 

The Service Locator Design Pattern solves duplication of code used for JNDI lookup of objects by abstracting the complexities and network dependencies into a single Service Locator class. This service layer pattern can be used for storing lookup values for all services and provide it on request. A caching mechanism can also be incorporated within the service to enhance performance as the JNDI lookup is made once only.

 

OTN publised a sample application for Service Locator Design Pattern that can be used as a reference application.


9:11:36 AM    comment []

© Copyright 2004 Debu Panda.

PS: These are my own thoughts and not of my employer ..



Click here to visit the Radio UserLand website.
 


November 2004
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Oct   Dec