wood burning stoves 2.0*
The moose likes BEA/Weblogic and the fly likes Proxy Applicaton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Proxy Applicaton" Watch "Proxy Applicaton" New topic
Author

Proxy Applicaton

Daniel Oliva
Greenhorn

Joined: Nov 24, 2011
Posts: 2
Hello to you all.

I have a customer that need to install a Weblogic with one application on it. It´s OK . But this application work over the http cookie and then my customer want that the request be forwarded to another weblogic instance in another machine.

So, the situation is in Weblogic Server instance 1 Im going to have an application and the httpProxyServlet.

The question is: Is possible to configure the application that strips with cookie for send the http request to another WLS in another machine?
Can I use HttpProxyServlet, but How can I configure the application for forward the http request when the application that strip cookie finish its work?

I hope that you can help me.

Thanks.
Baski Reddy
Greenhorn

Joined: Feb 09, 2010
Posts: 7
Yes it's definitely possible to use WebLogic's proxy servlet but bit complicated and documentation is scarce. Any reasons why you can't use Apache's HttpClient besides that you need a additional set of jars?
Daniel Oliva
Greenhorn

Joined: Nov 24, 2011
Posts: 2
thanks Baski.

Yes, It's a customer requirement. I can't make a guess.

We need install the HttpProxySerlvet en Weblogic and configure it to forward to a IIS site. This is relative simple but, I need to add Servlet filter to HttpProxyServlet to modify http request before this servlet forward the request to IIS.

It's nice!!!. Have you information that help me with this challenge!.

Thanks to you all.
Baski Reddy
Greenhorn

Joined: Feb 09, 2010
Posts: 7
I tried in the past but gave up since I couldn't figure how to cleanly handle the cookie from the other domain. However if you don't care about the cookie or content from the IIS server you can do this quickly.

I guess you meant Servet Mapping when you said Servlet Filter. All you probably have to do is configure the servlet and servlet-mapping with the URI's that needs to be proxy.
 
 
subject: Proxy Applicaton
 
Similar Threads
Problem related to Time Out in Managed Server
Logging into a Site with out Using Browser....
Redirection of action clearing cookie parameter leading to mis behave of application
Get ServletContext of a web app hosted in another server
custering and co-located web and server tier