3 Replies Latest reply on Jul 25, 2006 2:14 PM by peterj

    Browsing the JNDI ENC of a web application

    raydecampo

      I understand how to use the JNDIView MBean via the jmx-console to browse the global JNDI and the ENC contexts of EJBs. How can one browse the ENC contexts (i.e. java:comp namespace) of web applications? I have tried searching the web, the wiki and these forums without any luck.

      Thanks,
      Ray

        • 1. Re: Browsing the JNDI ENC of a web application
          peterj

          I don't think that is possible. I think that each ENC is local, and private, to the application. For this reason, I always include a simple jsp in my application that I can use to get at the application's ENC. The jsp is posted at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=83213

          • 2. Re: Browsing the JNDI ENC of a web application
            raydecampo

            I do not see why the ENC for an EJB would be accessible via the JNDIView but the ENC for a web application would not be. From a J2EE perspective the ENC for an EJB or web application is equally local and private.

            I think you may posted the wrong link, that contains a JSP for displaying the system properties. Not that I do not appreciate your effort. :-)

            • 3. Re: Browsing the JNDI ENC of a web application
              peterj

              Oh shoot, I searched for the wrong code! I have two common jsps, one for the system properties, the other for JNDI. I thought I had a version of the JNDI jsp that was all-inclusive, but I can't seem to find it (perhaps on my laptop at home). The simplest version I can find is one that uses servlets, JSPs and the JSTL (I usually port this code to whatever framework I am studying). If interested, I could post it (without comments it's not too long, but I do have to clean it up some).