Hi folks,
I've created an ear containing a jmx bean which gets invoked when the ear is deployed. Now, the bean tries to perform:
InitialContext context = new InitialContext(); String homeName = "something-in-another-ear"; ListenerHome listenerHome = (ListenerHome) PortableRemoteObject.narrow(context.lookup(homeName), ListenerHome.class);
java.lang.ClassCastException at com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:293) at javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:134)