tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Fisk" <adamf...@gmail.com>
Subject Re: programmatically sending tomcat a socket?
Date Wed, 02 Aug 2006 19:43:15 GMT
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 <Peter.Crowther@melandra.com> wrote:
>
> > From: Adam Fisk [mailto:adamfisk@gmail.com]
> > 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message