You can also do it this way:
Use bidirectional messaging with RMI. Have the client register with an RMI
server, passing along a stub of itself. Pass the address and port of the
RMI server to the ejb. When the ejb starts processing, have it send a
message to the RMI server which then will notify the client (or all clients
that registered with it). The RMI server this way calls a method in the
client. The client from there can do what ever it needs to do. When the ejb
is finished, it will send another message to the rmi server which then
would let the client know that the ejb is done. This way, you do not need
to create any threads inside the ejb.
Thomas
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]