File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Clustering problem... any ideas ?! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Clustering problem... any ideas ?!" Watch "Clustering problem... any ideas ?!" New topic

Clustering problem... any ideas ?!

Kiran Bandi

Joined: Mar 04, 2003
Posts: 21
Friends ... here is my problem scenario. If any body has ideas, pl.share them.

I have Webservices exposed on weblogic server. UI (in .NET ) accesses the webservices API on WLS.(bunch of EJBs are deployed on the WLS)
Now I thought of converting the WLS to a clustered environment. So I created 2 manged servers (on the same machine ..just to try initially). I have assigned unique port numbers to them.I tried mutlcast test .looks like the intra-cluster communication is okay.
My problem is I dont want all the requests to be forwarded to weblogic. Static pages are still served by .NET part but i need this to look at the webservice on WLS (in a clustered environment) for the dynamic content.
In non clustered environment, i used to give the webservices url in the app settings of web.config as follows and it used to work great . <add key="xcservicelib.WSRef.XCWebService" value="http://localhost:7001/CCWebModule/services/XCWebServiceSoap"/>
Now I have two managed servers in the cluster at 8001 and 9001 ports on th e same machine.
I followed the steps to configure iis-plugin(copied the dlls to a dir c:\plug-ins) and created ini file and included the following.
WebLogicCluster=localhost:8001,localhost:9001 ConnectTimeoutSecs=20 ConnectRetrySecs=2 Debug=ON WlForwardPath=/CCWebModule/services/XCWebServiceSoap WLLogFile=c:\plug-ins\log\iisproxy.log
I tried to access using the cluster address.It does not work (UI does not find the underlying server!) Could somebody help me to properly forward request (only webservice calls !)
Thanks for your help .

If you want to do it...DO IT!!<br />You can't cross a sea by staring at it!
Kiran Bandi

Joined: Mar 04, 2003
Posts: 21
Nevermind I could figure it out after some research. We had to use a HttpProxy servlet to proxy the request as the iis plugin somehow not able to work as a cluster aware proxy.(Though according to documentation it is suppose to be clster aware!)
Now all i needed was a one more instance of weblogic express to proxy requests to my set of clustered servers.
Things working great!
I was going thru my posts.. I thought I would reply to this as it was solved long ago!!
I agree. Here's the link:
subject: Clustering problem... any ideas ?!
It's not a secret anymore!