RMI, EJB and callback

Is it possible for the client to pass the RMI object as an argument to the EJB so that the EJB can redirect the client?

+4


source to share


2 answers


You will need to pass the connection data in the EJB call and configure the EJB to the client RMI server.



I can recommend using messaging and a temporary queue for asynchronous behavior, which sounds like you are trying to achieve ...

+3


source


Not. Deleted objects cannot be serialized and moved to other locations because the connection to the remote object is itself temporary.



It might be possible to use some type of wrapper object that can be serialized and reestablish the RMI connection once sent to the EJB.

0


source







All Articles