OK interesting. I'll look into it. I don't have a good enough handle on the Tomcat code base to undertand how it all plugs together, but this sounds like a great starting point. Thanks!
-Adam On 7/31/06, Peter Crowther <[EMAIL PROTECTED]> wrote:
> 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]