• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

java class that supports load balancing and fail over

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i know the theory well regarding cluster environment,load balancing and fail over.But i couldn't able to convert that knowledge to a java class or set of java classes(shouldn't be web application)that supports load balancing and fail over. suppose my application architecture is like

readMQ--> java class(for load balance)-->weblogic instances in cluster.
readMQ app will call my java class and my java class shoudl be able to redirect the request to any one of the running weblogic instances in the cluster.

please suggest me the resources(URLs or code snippets) and help me to come up with my load balancer component.

regards

hiteesh
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How about just catching the exception, and trying another server - the failover server?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"hiteesh"

Why did you change your display name? Please change it back to your real first and last names. You know our policy, accounts that don't follow it are suspended or closed.

Mark
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jesus Angeles,
Hi jesus angeles,
ok,we can know if the server instance is failed if URL.openStream() thorws exception.But how to forward the request to one of the running servers from a normal java class.how about session persistence from normal java class.
 
prem nath
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
one mor doubt,
i do i check whether the server is running or not if the server name(host name) and port is given in java class.
 
reply
    Bookmark Topic Watch Topic
  • New Topic