Rickard Öberg writes:
 > Hey
 > 
 > Tom Cook wrote:
 > >  > I've written an mbean (two in fact) which my beans need to look up.
 > >  > When they go to do so, however, there is a ClassCastException thrown
 > >  > at java.rmi.PortableRemoteObject.narrow().  This smells to me like a
 > >  > classloader issue; the classes are being loaded by different
 > >  > classloaders and so are not the same type.  What do I have to do to my
 > >  > mbean to make it available to beans?
 > >  >
 > >  > TIA
 > > 
 > > Sorry, I've fixed it.  Someone (not me) was using the wrong class in a
 > > call to narrow.
 > 
 > I don't get it. When are you using narrow with MBeans!?!?!? 

Perhaps my description wasn't very accurate.  My mbean creates an
object which it registers with the JNDI.  The bean does a ctx.lookup
on the object then PortableRemoteObject.narrow() on it.

Tom


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to