You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Oleg Kalnichevski <ol...@apache.org> on 2005/07/24 20:52:17 UTC

[HttpCommon] Tomcat Coyote connector based on HttpCommon

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: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Re: [HttpCommon] Tomcat Coyote connector based on HttpCommon

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sat, 2005-08-06 at 14:43 -0400, Michael Becke wrote:
> I've been looking at your code trying to follow things, but have also
> found the Coyote API quite difficult to digest.  Sounds like you have
> a pretty good idea of how to proceed though.  Have you been in contact
> with any of the other connector implementors for assistance?  I don't
> know how much they'd be able to help but it might be worth a try.

Hi Mike,

I have not, though, I have been thinking about doing so a couple of
times. As long as this endeavor is a good testing ground for HttpCommon
code I believe my efforts are still worthwhile. I'll probably get in
touch with the Tomcat folks once I have something more or less
functional to show and see if they are willing to discuss ways to
improve the Coyote API

Cheers,

Oleg

> 
> Mike
> 
> On 8/6/05, Oleg Kalnichevski <ol...@apache.org> wrote:
> > Mike et al,
> > 
> > Tomcat Coyote API proved much more intrusive as I initially assumed and
> > felt it would need to be. So, my initial attempt to keep Tomcat Coyote
> > specific code separate from the rest of the connector behind an abstract
> > API has failed miserably. I did take me quite a while to wrap my head
> > around Coyote API. Tomcat's logical layers appear much more tightly
> > coupled that I thought it would be necessary. So, I'll have to scrap the
> > existing architecture and get back to the drawing board.
> > 
> > Besides, I have come to realize that HttpCommon needs a better framework
> > to manage HTTP expectations (such as 'expect: 100-continue' handshake),
> > which has been the only positive outcome of this endeavor so far.
> > 
> > I'll keep you posted on the progress or lack thereof
> > 
> > Oleg
> > 
> > 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 :)
> > >
> > > Mike
> > >
> > > On 7/24/05, Oleg Kalnichevski <ol...@apache.org> 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: httpclient-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > >
> > >
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Re: [HttpCommon] Tomcat Coyote connector based on HttpCommon

Posted by Michael Becke <mb...@gmail.com>.
I've been looking at your code trying to follow things, but have also
found the Coyote API quite difficult to digest.  Sounds like you have
a pretty good idea of how to proceed though.  Have you been in contact
with any of the other connector implementors for assistance?  I don't
know how much they'd be able to help but it might be worth a try.

Mike

On 8/6/05, Oleg Kalnichevski <ol...@apache.org> wrote:
> Mike et al,
> 
> Tomcat Coyote API proved much more intrusive as I initially assumed and
> felt it would need to be. So, my initial attempt to keep Tomcat Coyote
> specific code separate from the rest of the connector behind an abstract
> API has failed miserably. I did take me quite a while to wrap my head
> around Coyote API. Tomcat's logical layers appear much more tightly
> coupled that I thought it would be necessary. So, I'll have to scrap the
> existing architecture and get back to the drawing board.
> 
> Besides, I have come to realize that HttpCommon needs a better framework
> to manage HTTP expectations (such as 'expect: 100-continue' handshake),
> which has been the only positive outcome of this endeavor so far.
> 
> I'll keep you posted on the progress or lack thereof
> 
> Oleg
> 
> 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 :)
> >
> > Mike
> >
> > On 7/24/05, Oleg Kalnichevski <ol...@apache.org> 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: httpclient-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Re: [HttpCommon] Tomcat Coyote connector based on HttpCommon

Posted by Oleg Kalnichevski <ol...@apache.org>.
Mike et al,

Tomcat Coyote API proved much more intrusive as I initially assumed and
felt it would need to be. So, my initial attempt to keep Tomcat Coyote
specific code separate from the rest of the connector behind an abstract
API has failed miserably. I did take me quite a while to wrap my head
around Coyote API. Tomcat's logical layers appear much more tightly
coupled that I thought it would be necessary. So, I'll have to scrap the
existing architecture and get back to the drawing board.

Besides, I have come to realize that HttpCommon needs a better framework
to manage HTTP expectations (such as 'expect: 100-continue' handshake),
which has been the only positive outcome of this endeavor so far.

I'll keep you posted on the progress or lack thereof

Oleg

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 :)
> 
> Mike
> 
> On 7/24/05, Oleg Kalnichevski <ol...@apache.org> 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: httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Re: [HttpCommon] Tomcat Coyote connector based on HttpCommon

Posted by Oleg Kalnichevski <ol...@apache.org>.
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 <ol...@apache.org> 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 <ol...@apache.org> 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: httpclient-dev-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > > > >
> > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > >
> > >
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Re: [HttpCommon] Tomcat Coyote connector based on HttpCommon

Posted by Michael Becke <mb...@gmail.com>.
This may be a stupid question, but how are you acually running it
outside of Tomcat?

Mike

On 7/27/05, Oleg Kalnichevski <ol...@apache.org> 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 <ol...@apache.org> 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: httpclient-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Re: [HttpCommon] Tomcat Coyote connector based on HttpCommon

Posted by Oleg Kalnichevski <ol...@apache.org>.
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 <ol...@apache.org> 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: httpclient-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > > 
> > >
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Re: [HttpCommon] Tomcat Coyote connector based on HttpCommon

Posted by Oleg Kalnichevski <ol...@apache.org>.
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 <ol...@apache.org> 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: httpclient-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> > 
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Re: [HttpCommon] Tomcat Coyote connector based on HttpCommon

Posted by Michael Becke <mb...@gmail.com>.
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 :)

Mike

On 7/24/05, Oleg Kalnichevski <ol...@apache.org> 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: httpclient-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org