[ 
https://issues.apache.org/activemq/browse/AMQ-2828?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60676#action_60676
 ] 

john robens commented on AMQ-2828:
----------------------------------

Gary - yes tried that too.

> Broker connection string does not allow both failover and compression
> ---------------------------------------------------------------------
>
>                 Key: AMQ-2828
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2828
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Connector
>    Affects Versions: 5.3.0
>         Environment: apache camel, grails 1.3.2 - server is spring 2.5.6. 
> activemq-all-5.3.0.jar activemq-pool5.3-SNAPSHOT.jar
>            Reporter: john robens
>
> This works (spring resources.groovy in grails): 
> _jmsConnectionFactory(ActiveMQConnectionFactory) {
>         brokerURL = tcp://localhost:61616?jms.useCompression=true
>       }
> So does this: 
> _jmsConnectionFactory(ActiveMQConnectionFactory) {
>         brokerURL = failover:(tcp://localhost:61616)
>   }
> But this doesn't 
> _jmsConnectionFactory(ActiveMQConnectionFactory) {
>         brokerURL = failover:(tcp://localhost:61616?jms.useCompression=true)
>   }
> Error message is: 
> 195562 [ActiveMQ Task] DEBUG 
> org.apache.activemq.transport.failover.FailoverTransport  - Connect fail to: 
> tcp://localhost:61616?jms.useCompression=true, reason: 
> java.lang.IllegalArgumentException: Invalid connect parameters: 
> {jms.useCompression=true}
> Had a look at the code and it does seem to say this by default.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to