Hi Mike,
The HTTP connector does not really do much in its present form. It
just listens on a port, receives HTTP requests and sends back some sort
of an HTTP response. It does not integrate with the Catalina engine yet.
Basically my test container looks pretty much like that:
static void main(String[] args) throws Exception {
HttpProtocolHandler httphandler = new HttpProtocolHandler();
httphandler.init();
httphandler.start();
Runtime.getRuntime().addShutdownHook(new ShutdownThread(httphandler));
}
static class ShutdownThread extends Thread {
private final HttpProtocolHandler httphandler;
public ShutdownThread(final HttpProtocolHandler httphandler) {
super();
this.httphandler = httphandler;
}
public void run() {
try {
this.httphandler.destroy();
} catch (Exception ex) {
System.err.println(ex.getMessage());
}
}
}
Oleg
On Wed, Jul 27, 2005 at 05:46:46PM -0400, Michael Becke wrote:
> This may be a stupid question, but how are you acually running it
> outside of Tomcat?
>
> Mike
>
> On 7/27/05, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote:
> > Mike et al,
> >
> > I just committed the initial import of a bare-bone Tomcat HTTP connector
> > based on HttpCommon code. The connector appears functional if run
> > outside Tomcat, even though only the most fundamental functions are
> > implemented at the moment. The code is still largely untested. I'll be
> > gradually adding missing bits and pieces. The next step for me is to get
> > the connector up and running inside Tomcat.
> >
> > The connector code requires the following dependencies:
> >
> > Java 1.5
> > Tomcat Coyote (CVS HEAD)
> > Jakarta Commons Logging
> > Jakarta HttpClient HttpCommon (SVN TRUNK)
> >
> > Oleg
> >
> >
> > On Sun, 2005-07-24 at 22:39 +0200, Oleg Kalnichevski wrote:
> > > On Sun, 2005-07-24 at 15:50 -0400, Michael Becke wrote:
> > > > Hi Oleg,
> > > >
> > > > I wouldn't mind taking a look at what you're working on. If you get
> > > > the chance please post the code somewhere and I'll take a quick look.
> > > > Who knows, maybe I'll even get a chance to add something :)
> > > >
> > >
> > > Hi Mike. That's cool. I'll create a new SVN module and will start
> > > committing as soon as I have something to look at.
> > >
> > > Cheers,
> > >
> > > Oleg
> > >
> > > > Mike
> > > >
> > > > On 7/24/05, Oleg Kalnichevski <[EMAIL PROTECTED]> wrote:
> > > > > Folks,
> > > > >
> > > > > Just to keep you in the loop, this weekend I started working on a
> > > > > Tomcat
> > > > > Coyote connector based on HttpCommon code in order to test how well
> > > > > (or
> > > > > badly) HttpCommon components fare on the server side. If any of you
> > > > > care
> > > > > to monitor the development or interested in taking part in it, please
> > > > > let me know. Otherwise, I'll be working off the private repository and
> > > > > will not be committing any code to the Jakarta HttpClient SVN
> > > > > repository
> > > > > until the connector's architecture is more or less complete and I
> > > > > have a
> > > > > fair degree of confidence in its viability.
> > > > >
> > > > > Oleg
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]