I need to have a business logic running inside Glassfish 2.1 Appserver, which listens for inbound TCP connections and serves them. I feel that this kind of task is not really fit inside the appserver - maybe I should publish web service interfaces, etc, but I can't, at least not directly for the client.
The client will connect to my app via TCP, and will exchange plain-text commands and responses.
Do I need an external mediator program which translates the client TCP to rmi calls? Or does J2EE have native support for listening on sockets and doing direct I/O on them?
Thank you!