1 Reply Latest reply on Mar 12, 2008 10:53 AM by Ales Justin

    JNDI & MC

    Gilles Compienne Newbie

      Hello,

      If my understanding is correct MC has a notion of application context (which is the "ControllerContext" or something like that if I am not mistaken?).

      Now what I wonder is: is JBoss JNDI aware of this context?

      Ideally I would like a deployer to be able to add entries to the application JNDI ENC but I must admit I wonder how to do that.

      If in the deployer's code, I try to create an initial context and lookup "java:comp/env", am I likely to get something potentially related to the deployer rather than the application?

      Thanks for your help.

      Regards.

      Gilles.

        • 1. Re: JNDI & MC
          Ales Justin Master

           

          "gcompienne" wrote:

          If my understanding is correct MC has a notion of application context (which is the "ControllerContext" or something like that if I am not mistaken?).

          You mean DeploymentControllerContext?

          "gcompienne" wrote:

          Now what I wonder is: is JBoss JNDI aware of this context?

          No.

          "gcompienne" wrote:

          Ideally I would like a deployer to be able to add entries to the application JNDI ENC but I must admit I wonder how to do that.

          @org.jboss.aop.microcontainer.aspects.jndi.JndiBinding

          "gcompienne" wrote:

          If in the deployer's code, I try to create an initial context and lookup "java:comp/env", am I likely to get something potentially related to the deployer rather than the application?

          Don't understand what you mean?
          The deployers don't know anything about JNDI.