Hey,
I've written a very simple server that accepts socket connections on a specific port and communicates with clients over that socket. Now I have a client lib which works perfectly fine in J2SE apps.
However, if I try to use that lib in a Servlet (the Servlet being the client) to communicate with the server it doesn't work. Unfortunately there is no Exception or something that could help me. Instead when using the lib simply nothing happens. That is the call to the method within which the socket is opened just blocks indefinitely while no connection is made to the server.
I reckon this could be a general problem. Maybe things like that are not allowed from within a Servlet? But even if not I would at least expect that some Exception to be thrown.
The Servlet Container is Tomcat by the way.
Has anyone got an idea as to why this doesn't work?