I know that Tomcat's purpose is to listen for requests and pass them on to 
the appropriately mapped servlet. But i want to use Tomcat's because i 
will not  need to code all the mutli-threading part of it. and if in the 
future some of the client connect over HTTP, I will have no problem 
handling them. My question is that can i  Configure Tomcat to listen for a 
generalize TCP connection  or not ?? Is there special Connector can do 
that for me ? 







"Richard Mixon" <[EMAIL PROTECTED]> 
31/05/2006 08:27
Please respond to
"Tomcat Users List" <users@tomcat.apache.org>


To
"'Tomcat Users List'" <users@tomcat.apache.org>
cc

Subject
RE: Socket Servlet using Tomcat 5.5.17






Tomcat's purpose is to listen for requests and pass them on to the
appropriately mapped servlet. Maybe you do not want to use Tomcat, but
instead roll your own server that simply listens on a particular port for
socket opens. But again, to do this well is not a trivial exercise.

The port you choose to have Tomcat listen on is configurable (the default 
is
port 8080). But it still expects a well formed HTTP request to arrive. 
That
said I do know that there are both HTTP and non-HTTP versions of the 
Servlet
interface - maybe someone else can tell you how this might or might not 
help
you cause Tomcat to listen for a generalize TCP connection.

HTH - Richard

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 30, 2006 8:55 PM
To: Tomcat Users List
Subject: Re: Socket Servlet using Tomcat 5.5.17

Hi David...

I didn't send a request to the servlet I am expecting the servlet to 
execute
on socket open, for that i made my servlet in the Root (The default 
one)...
I want once i connect using the host and port it execute my servlet...







David Smith <[EMAIL PROTECTED]>
30/05/2006 15:04
Please respond to
"Tomcat Users List" <users@tomcat.apache.org>


To
Tomcat Users List <users@tomcat.apache.org>
cc

Subject
Re: Socket Servlet using Tomcat 5.5.17






Could you please clarify something for me?  You say you expect the
servlet to run when the socket is opened.  Did you send a request or are
you really expecting the servlet to execute on socket open?  The servlet
won't be aware of the client until a request is made and tomcat has a
chance to route it to your servlet per the spec.

--David

[EMAIL PROTECTED] wrote:

>My problem is that my servlet running at Tomcat 5.05.17 and my servlet is 


>the default servlet, now i am trying to call this servlet by a Java 
>program that open socket connection... I want Tomcat run this default 
>servlet  open once that socket connect to Tomcat
>
>
>
>
>Markus Schönhaber <[EMAIL PROTECTED]> 
>30/05/2006 11:35
>Please respond to
>"Tomcat Users List" <users@tomcat.apache.org>
>
>
>To
>"Tomcat Users List" <users@tomcat.apache.org>
>cc
>
>Subject
>Re: Socket Servlet using Tomcat 5.5.17
>
>
>
>
>
>
>[EMAIL PROTECTED] wrote:
> 
>
>>How i can let Tomcat 5.5.27  listen to any socket connection from the
>>client and handle it  ??
>> 
>>
>
>By starting it.
>
>If this answer doesn't seem helpful, you should propably explain a little 


>more 
>precisely what you are trying to achieve.
>
>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]
>
>
>
>
> 
>


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





---------------------------------------------------------------------
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