-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Herendi,
On 6/19/2011 4:06 AM, netfo...@uw.hu wrote: > I have looked for books. Most or all of them covers only JSP, JSF or > JDBC but non of them covers TCP - socket communication in details such > as the ServerSocketFactory, the JSSEFactory or the ThreadPool. I could > mention some more issues when setting up a socket based application like > SocketPermision. You don't want a book on servlet programming, you want one on Java Socket programming. I haven't read it, but there's one called "TCP/IP Sockets in Java, Second Edition". Amazon reviews are all (3) 5-star. It's from 2008 but not a lot has changed in terms of the socket API in Java AFAIK. Some of the old Core Java books and stuff like covered socket programming, even if only briefly. > I have spent some time to try to translate it for Tomcat but with out > any refference i couldnt find the way to make it work. Tomcat already implements TCP/IP services to handle the HTTP(S) protocol(s), so there's no real need to re-invent it in order to run within Tomcat. If you are implementing your own sockets for non-HTTP conversations, there's no reason to have Tomcat in the mix at all... just run your program standalone. You probably couldn't make your program work because you didn't make it into a context listener, filter or servlet, the only three types of objects Tomcat will instantiate and initialize for you on webapp deployment. I think you are making a mistake by involving Tomcat in your project, at least given the information you have provided thus far. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3+tJcACgkQ9CaO5/Lv0PChnACfbTC9+qSB6L5Bz8eaOIzh6o3c jxsAoJ3uDl6aa17DT3o8tA70D7i0omeK =hiM1 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org