tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ope <ope...@yahoo.com>
Subject RE: Using Tomcat as a proxy?
Date Mon, 19 Aug 2002 20:04:59 GMT
> Open a URLConnection to the real page, read the data
> and write it to your
> output stream. This can be done in a servlet or a
> filter.

Thanks.  I have been giving it a try and it is not as
much work as I thought it would be.  I don't know why
I was trying so hard to find a way around but I think
that writing a 'proxy' servlet will end up being the
quickest way to an end in this case.

--- "Cox, Charlie" <ccox@cincom.com> wrote:
> 
> 
> > -----Original Message-----
> > From: ope [mailto:ope557@yahoo.com]
> > Sent: Monday, August 19, 2002 12:38 PM
> > To: Tomcat Users List
> > Subject: Re: Using Tomcat as a proxy?
> > 
> > 
> > 
> > > Why would you want to use a Java Servlet
> Container
> > > to do proxying? It's like 
> > > using a Space Shuttle to do door-to-door
> delivery.
> > > If you need proxying, use 
> > > Squid or Apache.
> > 
> > The reason I have to do this is to make the best
> of a
> > rather brain dead product deployment.  This is not
> a
> > long term fix but it is only a temporary fix to
> keep
> > customers happy for two months until we can change
> > everything.  I got thrown into the whole mix after
> the
> > fact.  Unfortunately installing Apache or Squid
> (my
> > first suggestion) on the clients site is not an
> > option.
> > 
> > > If you want to have pieces of other sites inside
> > > your webapp, the it is a whole 
> > > new ball game.
> > 
> > Ultimately this is the idea.  Basically we need to
> use
> > our webapp to get a page from another server and
> pass
> > it back to the user but make it appear that it
> came
> > from our webapp.  It is an ugly thing to do but I
> need
> > to find a quick fix before I can work on a real
> fix. 
> > If you have any ideas, suggestions or links I
> would
> > appreciate it.
> 
> Open a URLConnection to the real page, read the data
> and write it to your
> output stream. This can be done in a servlet or a
> filter.
> 
> Charlie


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message