users@glassfish.java.net

GF2.1 cluster - requests answered by both instances - load balancing?

From: <glassfish_at_javadesktop.org>
Date: Fri, 29 May 2009 03:36:47 PDT

Hi,

I have setup a simple cluster and deployed an application to it. The application has a TimerBean and some other SLSBs, a few queues. Kind of basic stuff.

My question is, if I know start the timer then it fires one time on instance1, then maybe three times on instance2, then again on instance1, yada-yada-yada. The same is for the beans, sometimes a bean from instance1 is taken, sometimes from instance2.

This seems to me like some kind of load-balancing. Can I disable this? Can I configure it in a way that always one instance is taken, unless that instance is down or unreachable?

TIA for any suggestions.
Cheers
Chris.
[Message sent by forum member 'chrjohn' (chrjohn)]

http://forums.java.net/jive/thread.jspa?messageID=348304