users@glassfish.java.net

Re: JMS HA has issues

From: <forums_at_java.net>
Date: Wed, 9 Jan 2013 15:04:39 -0600 (CST)

OK, creating the connection (instead of using ORB lookup) I made the settings
below with a conventional cluster (which should work with stand alone
instances as well). This allowed sending messages without throwing an
exception (only warnings after powering off master broker in the middle):
connectionFactory. setProperty(ConnectionConfiguration.imqReconnectEnabled,
"True"); connectionFactory.
setProperty(ConnectionConfiguration.imqReconnectAttempts, "1");
connectionFactory. setProperty(ConnectionConfiguration.imqReconnectInterval,
"5000"); connectionFactory.
setProperty(ConnectionConfiguration.imqAckTimeout, "5000");
connectionFactory. setProperty(ConnectionConfiguration.imqPingAckTimeout,
"5000"); connectionFactory.
setProperty(ConnectionConfiguration.imqAbortOnPingAckTimeout, "True");
connectionFactory.
setProperty(ConnectionConfiguration.imqSocketConnectTimeout, "5000");
15:32:50.155 [main] DEBUG c.bhn.services.jms.ClusterDirectTest - directJms
15:32:50.275 [main] WARN javax.jms - [C4003]: Error occurred on connection
creation [glassfish1.corp.local:27676]. - cause: java.net.ConnectException:
Connection refused 15:32:55.585 [main] WARN javax.jms - [C4003]: Error
occurred on connection creation [glassfish1.corp.local:27676]. - cause:
java.net.ConnectException: Connection refused 15:33:00.701 [main] WARN
javax.jms - [C4003]: Error occurred on connection creation
[glassfish1.corp.local:27676]. - cause: java.net.ConnectException: Connection
refused 15:33:05.753 [main] WARN javax.jms - [C4003]: Error occurred on
connection creation [glassfish1.corp.local:27676]. - cause:
java.net.ConnectException: Connection refused 15:33:10.832 [main] DEBUG
c.bhn.services.jms.ClusterDirectTest - Sending 100 messages 15:33:11.466
[main] DEBUG c.bhn.services.jms.ClusterDirectTest - Elapsed time: 627 ms,
messages: 100, average: 6.270000 ms 15:33:11.466 [main] DEBUG
c.bhn.services.jms.ClusterDirectTest - waitForEmptyQueue 15:33:12.480 [main]
DEBUG c.bhn.services.jms.ClusterDirectTest - Elapsed time: 1014 ms
15:33:12.501 [main] DEBUG c.bhn.services.jms.ClusterDirectTest -
waitForEmptyTopic 15:33:12.501 [main] DEBUG
c.bhn.services.jms.ClusterDirectTest - Waiting for 100 messages to be
received 15:33:14.262 [main] DEBUG c.bhn.services.jms.ClusterDirectTest -
Elapsed time: 1760 ms, messages: 100, average: 17.600000 ms 15:33:14.291
[main] DEBUG com.bhn.services.jms.ClusterTest - tearDown

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