Excuse me for my poor english.
On a JBoss Application Server we have programmed a Rest application with RestEasy to handle incomming requests. Then we need another application to handle requests to remote socket server that can be comunicated internaly with the Rest App. We have tried to do it with EJB Bean but the socket closes each time the bean is destroyed and we need that the socket remains open because of heavy load. How can we do that?

Thank you.