This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes  caching the jndi call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark " caching the jndi call" Watch " caching the jndi call" New topic
Author

caching the jndi call

red katz
Greenhorn

Joined: Nov 19, 2009
Posts: 1
hi ,

i'm using in my web project ; ejb3 under jboss :


in my web project i call them like that








in my web project i implement this call in each of managed beans, which no an optimal solution

so i try to do a generic method ==>









i test with 2 class, so that the first one , fill the map and the second should find a a map with the key of the jndi name , but it never found it,




is never executed


and thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: caching the jndi call
 
Similar Threads
ServiceLocator - issue when shared between two web app.
must the service locator be a singleton
JNDI lookup in EJBHomeFactory pattern
static code?
Service Locator