You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by arun196 <ar...@gmail.com> on 2015/03/05 23:28:24 UTC

java.lang.IllegalArgumentException: Invalid connect parameters: {connectionTimeout=1000}

Appreciate if you can help!

Below are my connection settings and the exception I get.	

<Resource name="jms/mqConnectionFactory"
  			 auth="Container"
  			 type="org.apache.activemq.ActiveMQConnectionFactory"
  			 description="JMS Connection Factory"
        	 factory="org.apache.activemq.jndi.JNDIReferenceFactory"
        	
brokerURL="failover:(tcp://localhost:61616?keepAlive=true,tcp://localhost:61617?keepAlive=true,tcp://localhost:61618?keepAlive=true)?connectionTimeout=1000&amp;jms.redeliveryPolicy.maximumRedeliveries=4" 
        	 />
    

Uncategorized exception occured during JMS processing; nested exception is
javax.jms.JMSException: Error while attempting to add new Connection to the
pool; nested exception is javax.jms.JMSException: Could not create
Transport. Reason: java.lang.IllegalArgumentException: Invalid connect
parameters: {connectionTimeout=1000} 



--
View this message in context: http://activemq.2283324.n4.nabble.com/java-lang-IllegalArgumentException-Invalid-connect-parameters-connectionTimeout-1000-tp4692572.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: java.lang.IllegalArgumentException: Invalid connect parameters: {connectionTimeout=1000}

Posted by arun196 <ar...@gmail.com>.
Thanks James!



--
View this message in context: http://activemq.2283324.n4.nabble.com/java-lang-IllegalArgumentException-Invalid-connect-parameters-connectionTimeout-1000-tp4692572p4692669.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: java.lang.IllegalArgumentException: Invalid connect parameters: {connectionTimeout=1000}

Posted by "James A. Robinson" <ji...@highwire.org>.
On Thu, Mar 5, 2015 at 2:28 PM, arun196 <ar...@gmail.com> wrote:
>
> brokerURL="failover:(tcp://localhost:61616?keepAlive=true,tcp://localhost:61617?keepAlive=true,tcp://localhost:61618?keepAlive=true)?connectionTimeout=1000&amp;jms.redeliveryPolicy.maximumRedeliveries=4"

I don't see connectionTimeout listed in

http://activemq.apache.org/failover-transport-reference.html

just timeout, initialReconnectDelay, and maxReconnectDelay