[
https://issues.apache.org/jira/browse/ARTEMIS-3146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Karan Aggarwal updated ARTEMIS-3146:
------------------------------------
Description:
Code:
String brokerUrl =
failover:(tcp://192.168.xx.xx:61616,tcp://192.168.xx.xx:61616)?startupMaxReconnectAttempts=10
ActiveMQConnectionFactory connectionFactory =
new ActiveMQConnectionFactory(brokerUrl);
connectionFactory.setTrustAllPackages(true);
connection = connectionFactory.createConnection();
connection.start();
We have seen that sometimes it takes 10Hrs to get out of this call.
Tried adding {{clientFailureCheckPeriod}} attribute to broker url. But it is
not being accepted.
Caused by: javax.jms.JMSException: Could not create Transport. Reason:
java.lang.IllegalArgumentException: Invalid connect parameters:
\{clientFailureCheckPeriod=10000}
was:
Code:
String brokerUrl =
failover:(tcp://192.168.xx.xx:61616,tcp://192.168.xx.xx:61616)?startupMaxReconnectAttempts=10
ActiveMQConnectionFactory connectionFactory =
new ActiveMQConnectionFactory(brokerUrl);
connectionFactory.setTrustAllPackages(true);
connection = connectionFactory.createConnection();
connection.start();
We have seen that sometimes it takes 10Hrs to get out of this call.
Tried adding {{clientFailureCheckPeriod}} attribute to broker url. But it is
not being accepted.
> Sometimes connection.start call get stuck
> -----------------------------------------
>
> Key: ARTEMIS-3146
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3146
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.11.0
> Reporter: Karan Aggarwal
> Priority: Critical
>
> Code:
>
> String brokerUrl =
> failover:(tcp://192.168.xx.xx:61616,tcp://192.168.xx.xx:61616)?startupMaxReconnectAttempts=10
> ActiveMQConnectionFactory connectionFactory =
> new ActiveMQConnectionFactory(brokerUrl);
> connectionFactory.setTrustAllPackages(true);
> connection = connectionFactory.createConnection();
> connection.start();
>
> We have seen that sometimes it takes 10Hrs to get out of this call.
>
> Tried adding {{clientFailureCheckPeriod}} attribute to broker url. But it is
> not being accepted.
> Caused by: javax.jms.JMSException: Could not create Transport. Reason:
> java.lang.IllegalArgumentException: Invalid connect parameters:
> \{clientFailureCheckPeriod=10000}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)