Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-3498

Add support for setting ActiveMQ destination options in Camel endpoint uris

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.0
    • Fix Version/s: 5.6.0
    • Component/s: activemq-camel
    • Labels:
      None

      Description

      It should be possible to configure and use ActiveMQ Destination Options
      http://activemq.apache.org/destination-options.html

      On Camel endpoints, so you can do something like

          <route>
            <from uri="file://src/test/data?noop=true"/>
            <!-- use consumer.exclusive ActiveMQ destination option, notice we have to prefix with destination. -->
            <to uri="activemq:queue:foo?destination.consumer.exclusive=true"/>
          </route>
      

      Notice we need to prefix the options with destination. to avoid clashes with the consumer. which is the regular Camel Consumer prefix.

      Since this is an ActiveMQ specific feature, we should add it to the activemq-camel component, and not directly in camel-jms.

        Activity

        Hide
        davsclaus Claus Ibsen added a comment -

        Sending activemq-camel/src/main/java/org/apache/activemq/camel/component/ActiveMQComponent.java
        Adding activemq-camel/src/test/java/org/apache/activemq/camel/CamelDestinationExclusiveConsumerTest.java
        Adding activemq-camel/src/test/resources/org/apache/activemq/camel/CamelDestinationExclusiveConsumerTest-context.xml
        Transmitting file data ...
        Committed revision 1170599.

        Show
        davsclaus Claus Ibsen added a comment - Sending activemq-camel/src/main/java/org/apache/activemq/camel/component/ActiveMQComponent.java Adding activemq-camel/src/test/java/org/apache/activemq/camel/CamelDestinationExclusiveConsumerTest.java Adding activemq-camel/src/test/resources/org/apache/activemq/camel/CamelDestinationExclusiveConsumerTest-context.xml Transmitting file data ... Committed revision 1170599.
        Hide
        davsclaus Claus Ibsen added a comment -

        Updated wiki documentation, with an example
        https://cwiki.apache.org/confluence/display/CAMEL/ActiveMQ

        Show
        davsclaus Claus Ibsen added a comment - Updated wiki documentation, with an example https://cwiki.apache.org/confluence/display/CAMEL/ActiveMQ

          People

          • Assignee:
            davsclaus Claus Ibsen
            Reporter:
            davsclaus Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development