[EMAIL PROTECTED] wrote:
> Yeah it dose work when i am accessing the Tomcat via the browser but i
> don't want to access it via the browser because somebody from different
> machine will send me a message via a socket connection and i want that
> servlet do the work once the socket connect to the Tomcat

If I understand correctly, you want Tomcat to execute your servlet when an TCP 
connection is established - even before any data is transmitted (before the 
request is made). AFAIK this won't work.

But I don't get the point why you want to avoid making a HTTP request. Your 
program already establishes a TCP connection. Why don't you (or the somebody 
from a different machine) simply send a string like
"GET / HTTP/1.0"
followed by two CRLFs over this connection?
You don't even need to code this manually if you use the URL/URLConnection 
classes.

Regards
  mks

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to