Hi!
I stumbled across a following problem:
1) An
EJB opens a client socket to a (non-Java EE) server
2) The EJB should asynchronously receive messages from the server
The idea in "standard Java" would be to construct the EJB object, start a new
thread, in that thread open a socket and put the incoming messages to some queue. The EJB then gets the messages from the queue for processing.
But
Java EE forbids creating new threads. Do you have any ideas how to solve the problem?