Is it possible for a client to pass an RMI object as an argument to an EJB so that the
EJB may callback the client? I saw a couple message regarding this in the archive but
I didn't see any definitive answers.
I tried it and my client spit out the following exception:
java.rmi.RemoteException: Error (de-)serializing object: __Proxy0; nested excepion is:
java.io.NotSerializableException: __Proxy0
java.io.NotSerializableException: __Proxy0
<<no stack trace available>>
The EJB spec says arguments must be valid RMI/IIOP types, aren't Remote object
references valid RMI types? I even made the adjustments to use a PortableRemoteObject
rather than UnicastRemoteObject, so I'm using IIOP rether than JRMP. Regardless I get
exactly the same exception.
Anyone have any luck getting callbacks to work? Am I missing something obvious here?
Russ