1 Reply Latest reply on Jan 12, 2009 11:54 AM by danidg

    Exporting mbean into JNDI java-namespace

    danidg

      Hi, i have a simple service like this (mymbean-service.xml):


      MY_JNDI_NAME
      jboss:service=Naming


      my start method (for the mbean) looks something like this:

      Context rootCtx = new InitialContext();
       try {
       Name fullName = rootCtx.getNameParser("").parse(jndiName);
       NonSerializableFactory.rebind(fullName, getObjectToBind(), true);
       } finally {
       rootCtx.close();
       }


      the mbean gets bound to the global jndi namespace. however i want the bean to be in the java: jndi namespace.

      Any idea(s) how to achieve this?

      tia,
      dani