Hi i've found this article that explains how to bind MBean to JNDI
http://wiki.jboss.org/wiki/BindMBeanToJNDI
But for some reason I can't get the object back using JNDI lookup, it's always null
Object obj = remoteCtx.lookup("service/Engine"); Assert.assertNotNull(obj);
Name fullName = rootCtx.getNameParser("").parse(jndiName); System.out.println("Binding to '"+fullName+"' object: "+getObjectToBind()); NonSerializableFactory.rebind(fullName, getObjectToBind(), true);
[STDOUT] Binding to 'service/Engine' object: core.EngineService@4e94a4