This content has been marked as final.
Show 3 replies
-
1. Re: Context Lookup
alrubinger Dec 19, 2006 4:54 AM (in response to aslocal)Sure, you can use the @LocalBinding annotation on either your interface or Implementation Class:
@LocalBinding(jndiBinding = "yourcompany/yourServiceName/local")
...to override the default JNDI naming scheme.
S,
ALR -
2. Re: Context Lookup
aslocal Dec 19, 2006 4:57 PM (in response to aslocal)Awesome, worked like a charm. Thanks much!
- Graeme. -
3. Re: Context Lookup
alrubinger Dec 20, 2006 12:49 AM (in response to aslocal)Glad to hear it.
As an aside, you might want to look at centralizing your JNDI calls outside of your servlets. Check out the Service Locator Pattern:
http://java.sun.com/blueprints/corej2eepatterns/Patterns/ServiceLocator.html
Word.
S,
ALR