You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Adrian Trenaman (JIRA)" <ji...@apache.org> on 2010/05/12 14:45:43 UTC

[jira] Issue Comment Edited: (AMQ-2729) Dot-separated prefetch configuration variable rejected by failover transport URI

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

Adrian Trenaman edited comment on AMQ-2729 at 5/12/10 8:43 AM:
---------------------------------------------------------------

Thanks Dejan for the super-quick response on this! I'm afraid I'd already tried moving the param to the outside of the failover brackets, and unfortunately this doesn't work :( Error is: 

{code}
     [java] Caught: javax.jms.JMSException: 
      Could not create Transport. Reason: java.lang.IllegalArgumentException: 
       Invalid connect parameters: {jms.prefetchPolicy.queuePrefetch=1}
{code}

      was (Author: adrian.trenaman@googlemail.com):
    Thanks Dejan for the super-quick response on this! I'm afraid I'd already tried moving the param to the outside of the failover brackets, and unfortunately this doesn't work :( Error is: 

{code}
     [java] Caught: javax.jms.JMSException: Could not create Transport. Reason: java.lang.IllegalArgumentException: Invalid connect arameters: {jms.prefetchPolicy.queuePrefetch=1}
{code}
  
> Dot-separated prefetch configuration variable rejected by failover transport URI
> --------------------------------------------------------------------------------
>
>                 Key: AMQ-2729
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2729
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Connector
>    Affects Versions: 5.3.2
>            Reporter: Adrian Trenaman
>
> If you set the queue prefetch policy on a failover connection string, you get an exception saying that the policy is not a valid configuration option.
> {code}
> failover://(tcp://localhost:61616?jms.prefetchPolicy.queuePrefetch=1)
> {code}
> To test, simply modify the URL in the example/build.xml file from an installation of ActiveMQ, and then run the producer using 'ant producer'. I think that this may be related to the fact that the variable in question - 'jms.prefetchPolicy.queuePrefetch' - has dots (periods) in the name. 

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