Hello,

I want to store references to stateful sessionbeans in a Hashtable of a
stateful sessionbean.
I tried to store the beanhandle and got a weird behavior:
The classname of the stored objects has been
'org.jboss.ejb.plugins.jrmp.interfaces.StatefulHandleImpl'.
When I get the object from the Hashtable normally the classname is correct,
but when the bean has been passivated and activated the classname has been
something like '$Proxy3'
and I get a ClassCastException on the cast to a Handle.

I know the classname of the bean references in jboss is somthing like $Proxy
(to see sometimes in Exception printStackTrace ...). It looks like that
through passivation / activation the handles have been restored to the
remoteinterfaces of the beans ....

What's going on here ?
How should I store bean references: as remoteinterface or handle ?

Annegret


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to