activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From qt4x11 <qt4...@gmail.com>
Subject failover invalid connect parameters
Date Thu, 20 Oct 2011 22:34:14 GMT
We are trying to instantiate a new ActiveMQConnectionFactory in our code
using the brokerURL

failover:(ssl://107.22.0.25:61616,ssl://174.129.78.76:61616
)?tcp.keepAlive=true

This does not work.  We get a stack trace during application deployment

14:47:19,203 ERROR [stderr] (MSC service thread 1-1) Caused by:
java.lang.IllegalArgumentException: Invalid connect parameters:
{tcp.keepAlive=true}
14:47:19,203 ERROR [stderr] (MSC service thread 1-1) at
org.apache.activemq.transport.failover.FailoverTransportFactory.createTransport(FailoverTransportFactory.java:64)
14:47:19,203 ERROR [stderr] (MSC service thread 1-1) at
org.apache.activemq.transport.failover.FailoverTransportFactory.doConnect(FailoverTransportFactory.java:37)
14:47:19,203 ERROR [stderr] (MSC service thread 1-1) at
org.apache.activemq.transport.TransportFactory.doConnect(TransportFactory.java:51)
14:47:19,203 ERROR [stderr] (MSC service thread 1-1) at
org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:80)
14:47:19,203 ERROR [stderr] (MSC service thread 1-1) at
org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:243)
14:47:19,203 ERROR [stderr] (MSC service thread 1-1) ... 30 more


If we remove options from the brokerURL

failover:(ssl://107.22.0.25:61616,ssl://174.129.78.76:61616)

we're able to deploy successfully.

We are using ActiveMQ 5.5.0.  What is it about the keepAlive option we're
appending to the failover brokerURL that is causing deployment errors?  Is
there any way we can use tcp keepAlive with failover?

Thanks.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message