Search code examples
javajakarta-eeejbrmicallback

RMI, EJB and callback


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?


Solution

  • You'd need to pass the connection details in the call to the EJB and have the EJB make a connection to the client-side RMI server.

    My advise would be to use messaging and a temporary queue for the asynchronous behaviour it sounds like you're trying to achieve...