3 messages in net.sourceforge.lists.jetty-support[Jetty-support] Reverse proxy servlet...
FromSent OnAttachments
Silvio BiermanDec 10, 2007 2:00 am 
Jan BartelDec 10, 2007 1:48 pm 
Silvio BiermanDec 10, 2007 2:37 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[Jetty-support] Reverse proxy servlet helpActions...
From:Silvio Bierman (sbie@jambo-software.com)
Date:Dec 10, 2007 2:00:57 am
List:net.sourceforge.lists.jetty-support

Hello all,

I have looked at the ProxyServlet class to see if I can use it to create reverse proxy functionality but I get stuck.

I would like to be able to receive HTTP GET/POST requests in a servlet, forward that requests to some other IP address (preferably without changing the Host header), receive the response of the forwarded requests and then forward that as the response to the original request. Off course I would like to be able to do some mapping logic in between. My main purpose is to implement some load balancing logic at the application level.

Can someone please give me some pointers on how to achieve this? I am mainly an application level servlet programmer and far from an expert in servlet or container internals.

Is the ProxyServlet a good place to start? Are there any other samples I could look at? Any help would be very much appreciated.

Kind regards,