users@glassfish.java.net

Re: JMS HA has issues

From: <forums_at_java.net>
Date: Tue, 8 Jan 2013 18:15:31 -0600 (CST)

When the system that is running a GlassFish instance is powered off, it's
possible a connection to broker becomes half-open which may take minutes
(depending on system configuration) for the TCP layer to abort the
connection. That could be the reason for the failover after "a few minutes".
The half-open connection can be proactively aborted by MQ client runtime by
setting the following connection factory properties appropriately
imqPingAckTimeout (default 0, no timeout) imqAbortOnPingAckTimeout (default
false, no abort connection) Please note that the above settings affect all
connection state, not just half-open connection. The ping interval is
controlled by connection factory property imqPingInterval (default 30sec)
>want the client to be able to continue to send messages when a broker fails
If the JMS cluster type is not enhanced cluster, please make sure
reconnectEnabled is set to true for the connection factory used by the sender
http://docs.oracle.com/cd/E18930_01/html/821-2438/aeoop.html#scrolltoc

--
[Message sent by forum member 'amyk']
View Post: http://forums.java.net/node/893426