• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

java class that supports load balancing and fail over

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • 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: 2107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about just catching the exception, and trying another server - the failover server?
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic