We would like to serve some client requests within our J2EE application server (JBoss 4.2.3). I read that the J2EE spec doesn't allow opening a socket from an enterprise bean. But the spec suggests no alternatives.
Specifically, enterprise beans should not:
- listen on, accept connections on, or multicast from a network socket
So the question is: What can I do to serve some binary tcp based protocols (not http) from within an application server?
Here someone suggests to implement a resource adapter. Is this the way you have to go or are there other (easier) solutions?