Firstly I don’t really need the power of a J2EE server. Only requirement is HTTP/HTTPS JSP/HTML container, JDBC pooling, some form of built-in JAAS compatible security, web services and rest of the base JDK 1.4 functionality. Therefore I’m thinking Tomcat is a nice lightweight type container for doing that.
Only real non-standard thing I’d like to do is create a thread pool to handle raw TCP/IP connections. The entities I’m talking to cannot use HTTP so I need some form of TCP/IP ServerSocket manager and a pool of threads to manage requests/responses to them.
So my question is can I do this in Tomcat safely? i.e. have a separate set of threads that manage communication with external entities? I’d really like to have some kind of startup class that initializes the thread pool and connectivity to the remote applications. Another option is I do this outside of Tomcat but it would be nice to deploy everything into the same container.
Any thoughts?
Thanks in advance.
/Jimmy