> From: Adam Fisk [mailto:[EMAIL PROTECTED] 
> I'm embedding Tomcat, and I'd like to have programmatically 
> send it a socket
> I've created (could be a reliable UDP socket subclass, some 
> other special
> "socket"), and have Tomcat handle it as if it were a normal socket,
> expecting incoming HTTP requests on that socket.
> 
> Anyone know how I should best go about this in the code?  

The obvious trick would be to subclass the relevant Connector class so
that it acquired the socket to listen on from your code rather than by
instantiating a new socket itself.  Then simply reference your own
Connector class rather than the stock class as you start the embedded
server.

                - Peter

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