In an application I need to use Socket connections as well as Http requests/responses in Java, I have done some work with Tomcat but I think it handles only HTTP requests/responses.
I was thinking of using Java Networking(java.net.Socket
and java.net.ServerSocket
), make a jar and run it on the server to handle the sockets and use Apache to handle the HTTP requests but I don't know how to integrate both of these.
The app will be installed on a home server so even the server part is under my control. Any ideas how to implement this?