3 Replies Latest reply on Jul 8, 2004 5:47 AM by kabirkhan

    JNDI configuration

      I need to configure a global jndi variable variable that all my applications could access without having to duplicate the definition neither in the web.xml not the the jboss-web.xml.
      Can someone tell me if this feature is availlable in jboss.

      thanks in advance

        • 1. Re: JNDI configuration
          kabirkhan

          An option would be to create a simple MBean that binds what you want, and is deployed on startup.

          There are probably other ways of doing this as well...

          • 2. Re: JNDI configuration

            Thanks for you suggestion. But I would like to avoid hard coding it.
            I was thinking that there was an existing Mbean that's doing the task just like the External Context Mbean and so ...

            any other suggestion ?

            • 3. Re: JNDI configuration
              kabirkhan

              There might be an existing MBean, I don't know.

              If you write your own, you could make the MBean read what is to be bound from the jboss-service.xml file-