[jboss-user] [JNDI/Naming/Network] - Re: Understand JNDI naming convention

PeterJ do-not-reply at jboss.com
Thu Aug 13 13:54:54 EDT 2009

1) For each web app deployed to the app server there is a "java:comp" namespace whose content is accessible only by that app. The app server prefills some names but you have to do some work (such as add resource-ref entries to your web.xml) to get others.

mapped-name for what? In an @Stateless annotation?  In an @EJB annotation? mapped-name is usually the full JNDI name (usefull for referencing the global namespace) while name is within the "java:" namespace for the app.

2) Names in the global namespace are accessible from remote clients (that is, running in a separate JVM) - remote clients cannot access names in "java:*". For example, if a remote client needs access to an EJB, it must look up the name in the global namespace.

3) You never said exactly where you are seeing this entry (I don't see it), but if it is part of the description for a"java:comp" then it is the name of the MBean name created for the application. MBean names have the pattern:


so in your case "e.cache" is the namespace, and there is only one key-value pair "service=CacheLoader"

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249497#4249497

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4249497

More information about the jboss-user mailing list