[jboss-user] [JNDI/Naming/Network] - Exporting mbean into JNDI java-namespace

daniDG do-not-reply at jboss.com
Mon Jan 12 11:50:29 EST 2009

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


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?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201087#4201087

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201087

More information about the jboss-user mailing list