Re: moding tomcat to be a proxy server

2003-06-24 Thread Remy Maucherat
Bill Ataras wrote:
Google doesn't give me much. I've gotten good results in a few hours so
far (I'm browsing with it now:) writing a valve that passes through http
traffic using the host field and filtering some headers. Takes advantage
of all the coyote connection/http11/thread stuff. Installs in
StandardEngine via server.xml config and doesn't pass the request to
invokeNext() so no need to config context/host etc.
I'm wondering if anyone has used tomcat in this way for real (beyond a
few hours of mucking around).
Personally, I would write the proxy as the Coyote adapter. That should 
faster as you can use reusable buffers instead of manipulating String 
objects. Your solution would work fine, though :)

Add in LB and a caching engine, and that's a feature we'd be very happy 
if you contributed :)

Remy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: moding tomcat to be a proxy server

2003-06-24 Thread Tim Funk
If I had to do this ... (and performance is not an issue)

- Look at HttpClient
- Make sure sessions are not on
- Create one webapp with one servlet mapped to EVERYTHING
- Your servlet decodes the incoming request, and uses HttpClient to make the 
new request.

Then your proxy is servlet container agnostic.

-Tim

Bill Ataras wrote:
Google doesn't give me much. I've gotten good results in a few hours so
far (I'm browsing with it now:) writing a valve that passes through http
traffic using the host field and filtering some headers. Takes advantage
of all the coyote connection/http11/thread stuff. Installs in
StandardEngine via server.xml config and doesn't pass the request to
invokeNext() so no need to config context/host etc.
I'm wondering if anyone has used tomcat in this way for real (beyond a
few hours of mucking around).
  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: moding tomcat to be a proxy server

2003-06-24 Thread Bill Ataras
LB ?
(it's early for me)

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 5:07 AM
To: Tomcat Developers List
Subject: Re: moding tomcat to be a proxy server

Bill Ataras wrote:
 Google doesn't give me much. I've gotten good results in a few hours
so
 far (I'm browsing with it now:) writing a valve that passes through
http
 traffic using the host field and filtering some headers. Takes
advantage
 of all the coyote connection/http11/thread stuff. Installs in
 StandardEngine via server.xml config and doesn't pass the request to
 invokeNext() so no need to config context/host etc.
 
 I'm wondering if anyone has used tomcat in this way for real (beyond a
 few hours of mucking around).

Personally, I would write the proxy as the Coyote adapter. That should 
faster as you can use reusable buffers instead of manipulating String 
objects. Your solution would work fine, though :)

Add in LB and a caching engine, and that's a feature we'd be very happy 
if you contributed :)

Remy


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



Re: moding tomcat to be a proxy server

2003-06-24 Thread Peter Romianowski
Bill Ataras wrote:

LB ?
Load Balancing, I guess ;)

(it's early for me)

-Original Message-
From: Remy Maucherat [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 24, 2003 5:07 AM
To: Tomcat Developers List
Subject: Re: moding tomcat to be a proxy server

Bill Ataras wrote:

Google doesn't give me much. I've gotten good results in a few hours
so

far (I'm browsing with it now:) writing a valve that passes through
http

traffic using the host field and filtering some headers. Takes
advantage

of all the coyote connection/http11/thread stuff. Installs in
StandardEngine via server.xml config and doesn't pass the request to
invokeNext() so no need to config context/host etc.
I'm wondering if anyone has used tomcat in this way for real (beyond a
few hours of mucking around).


Personally, I would write the proxy as the Coyote adapter. That should 
faster as you can use reusable buffers instead of manipulating String 
objects. Your solution would work fine, though :)

Add in LB and a caching engine, and that's a feature we'd be very happy 
if you contributed :)

Remy

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