Hi,
in the constructor of an mbean i try to bind a stub to the inital context.
When I try to bind the stub an exception gets thrown:
java.lang.ClassNotFoundException: jadex.adapter.mbean.MbeanAdaptorInterface
Here is a bit of code:
[code]
InitialContext ctx = null;
try {
adaptor = (jadex.adapter.mbean.MbeanAdaptorInterface) UnicastRemoteObject.exportObject(
new MBeanAdaptor(platform), 0);
ctx = new InitialContext();
ctx.rebind("test/hallo", adaptor);
} catch (RemoteException e2) {
e2.printStackTrace();
} catch (NamingException e) {
e.printStackTrace();
}
[/code]
I can't find out what the error is. Maybe the UnicastRemoteObject.exportObject() Method creates a class file which is then not found by the registry. But I am not sure about that and I do not no how I could solve this.
If you need more information please ask!
Thanks in advance for your help.
[Message sent by forum member 'petertu' (petertu)]
http://forums.java.net/jive/thread.jspa?messageID=278214