• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to access Weblogic cluster

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've tried to set up a cluster which consists of 2 managed weblogic servers(wls 6.1), the whole process is ok. But at the end I'm puzzled because I don't know how to access web applications on the cluster.
Am I missing something?
Thanks
 
Paul Meyer
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there an URL for a cluster of weblogic servers?
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You have to use a load balancer in front of the clustered servers or configure a proxy plugin for the cluster.
A proxy plug-in is a WebLogic Server extension to an HTTP server�such as Apache, Netscape Enterprise Server, or Microsoft Internet Information Server�that accesses clustered servlets provided by a WebLogic Server cluster. The proxy plug-in contains the load balancing logic for accessing servlets and JSPs in a WebLogic Server cluster. Proxy plug-ins also contain the logic for accessing the replica of a client's session state if the primary WebLogic Server hosting the session state fails.
You can also use weblogic as a proxy, and the proxy is the one who receives the request.
Take a look at:
http://edocs.bea.com/wls/docs81/cluster/planning.html#1118661
regards.
 
Paul Meyer
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Marcos,

Thanks very much for your useful reply.
I tried to use weblogic.servlet.proxy.HttpClusterServlet and it worked.
However, I'm still quite puzzled by a couple of things.
1. In my cluster, the Default Load Algorithm is round-robin. But All requests are received by one server in the cluster, the other server is idle. These requests come from different IPs. I guess that is not what round-robin means.
2. after having updated my web application, the changes can be seen when I use the managing server. But in cluster, which consists of 2 managed servers, my web application is still the old one. Restarting servers does not help at all.
any suggestion?
Thanks a lot
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Meyer:

1. In my cluster, the Default Load Algorithm is round-robin. But All requests are received by one server in the cluster, the other server is idle. These requests come from different IPs. I guess that is not what round-robin means.


You're right, you are having a strange behavior, that's not the way the round robin should work, it shoult send one request to each server in the cluster(if the requesta are from the same client it'll redirect to the same server wich answered first). My bet is that there's something still missing on your configuration of the proxy. (You have to register the servers who are participating in the cluster on the web.xml file)


2. after having updated my web application, the changes can be seen when I use the managing server. But in cluster, which consists of 2 managed servers, my web application is still the old one. Restarting servers does not help at all.
any suggestion?
Thanks a lot


Did u redeploy u'r application for the cluster??? You should not deploy it directly to the servers. Are u'r servers under development mode or production mode, because you have dif. ways to update applications under each one mode.
check that and give notice about....ok...
cheerrss.
 
Paul Meyer
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I gave up weblogic.servlet.proxy.HttpClusterServlet and used proxy plug-in for apache. Consequently I got a little better result. All servers were participating in processing requests. Still it was not in a round-robin fashion, despite that the cluster was configured in round-robin way.
Another problem also joined in to torture me further . I just can't get the replication in memory of http session work. I have put [I<session-param>
<param-name> PersistentStoreType </param-name>
<param-value> replicated </param-value>
</session-param> [/I]
in weblogic.xml. What else should I do to achieve this?

[ March 11, 2004: Message edited by: Paul Meyer ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic