• Post Reply Bookmark Topic Watch Topic
  • New Topic

java class that supports load balancing and fail over

 
mohan kumar r
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
 
Jesus Angeles
Ranch Hand
Posts: 2069
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about just catching the exception, and trying another server - the failover server?
 
Mark Spritzler
ranger
Sheriff
Posts: 17290
9
IntelliJ IDE Mac 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
 
prem nath
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!