users@glassfish.java.net

Re: asadmin list-jndi-entries and list-components

From: <glassfish_at_javadesktop.org>
Date: Wed, 28 Feb 2007 10:13:43 PST

Good question.

list-components(mbeans, life-cycle-modules etc.)
 lists the entries as they are available in the "configuration". Thus, when
you deploy an application or a module or a custom MBean or a life-cycle module, an entry
is made in the configuration (domain.xml) and that's what is returned when you do the
list.

list-jndi-entries lists the entries that are available in the JNDI tree of a running server.
AFAIK, the entries are not put into the JNDI tree until there is at least one request to
look them up. If list-jndi-entries is returning nothing, it means that there is nothing in
the JNDI tree. (There could be a bug as well, but AFAIK, there is no bug like "feature
does not work" here :) )

Can you try to invoke a servlet that looks up a data-source or an EJB in your application
and then check the jndi-entries?

Thanks,
Kedar
[Message sent by forum member 'km105526' (km105526)]

http://forums.java.net/jive/thread.jspa?messageID=205680