You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Torsten Mielke (JIRA)" <ji...@apache.org> on 2011/04/12 12:10:05 UTC

[jira] [Created] (AMQ-3280) Add support for message selectors and message headers in maven-activemq-perf-plugin.

Add support for message selectors and message headers in maven-activemq-perf-plugin.
------------------------------------------------------------------------------------

                 Key: AMQ-3280
                 URL: https://issues.apache.org/jira/browse/AMQ-3280
             Project: ActiveMQ
          Issue Type: New Feature
          Components: Performance Test
    Affects Versions: 5.5.0
         Environment: maven-activemq-perf-plugin, message selectors
            Reporter: Torsten Mielke
         Attachments: AMQ-3280.patch

The maven ActiveMQ performance plugin can be used as a general test framework. 
It currently lacks support for specifying message selectors in the consumer. 
I request this support to be added and attach a possible implementation. 

In this implementation, the consumer additionally supports the following configuration option:
{code}
-Dconsumer.messageSelector="MyHeader = 'MyValue' AND JMSType = 'car'"
{code}

You can specify message selector criterias, as explained in http://activemq.apache.org/selectors.html. However this implementation only supports header based criterias. 

In order to produce messages that match the message selector of the consumer it is necessary to also extend the producer to support message headers. 
On the producer side message headers can be specified using this arguments
{code}
-Dproducer.header="JMSType=car:MyHeader=MyValue"
{code}

whereby each header follows the syntax name=value and multiple headers can be separated using ':' on the same line. 
There can only be one occurrence of -Dproducer.header. If multiple are specified, they will override each other. 
Hence multiple headers need to be separated by ':'

The sample message header configuration of the producer above will match the message selector configuration of the consumer above.

If this patch gets accepted, the documentation of the [maven-activemq-perf-plugin|http://activemq.apache.org/activemq-performance-module-users-manual.html] needs to be updated as well. 





--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (AMQ-3280) Add support for message selectors and message headers in maven-activemq-perf-plugin.

Posted by "Torsten Mielke (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Torsten Mielke updated AMQ-3280:
--------------------------------

    Attachment: AMQ-3280.patch

Patch attached. It includes a unit test which tests the parsing of -Dproducer.header configuration. 

> Add support for message selectors and message headers in maven-activemq-perf-plugin.
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3280
>                 URL: https://issues.apache.org/jira/browse/AMQ-3280
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Performance Test
>    Affects Versions: 5.5.0
>         Environment: maven-activemq-perf-plugin, message selectors
>            Reporter: Torsten Mielke
>              Labels: maven-activemq-perf-plugin, selector
>         Attachments: AMQ-3280.patch
>
>
> The maven ActiveMQ performance plugin can be used as a general test framework. 
> It currently lacks support for specifying message selectors in the consumer. 
> I request this support to be added and attach a possible implementation. 
> In this implementation, the consumer additionally supports the following configuration option:
> {code}
> -Dconsumer.messageSelector="MyHeader = 'MyValue' AND JMSType = 'car'"
> {code}
> You can specify message selector criterias, as explained in http://activemq.apache.org/selectors.html. However this implementation only supports header based criterias. 
> In order to produce messages that match the message selector of the consumer it is necessary to also extend the producer to support message headers. 
> On the producer side message headers can be specified using this arguments
> {code}
> -Dproducer.header="JMSType=car:MyHeader=MyValue"
> {code}
> whereby each header follows the syntax name=value and multiple headers can be separated using ':' on the same line. 
> There can only be one occurrence of -Dproducer.header. If multiple are specified, they will override each other. 
> Hence multiple headers need to be separated by ':'
> The sample message header configuration of the producer above will match the message selector configuration of the consumer above.
> If this patch gets accepted, the documentation of the [maven-activemq-perf-plugin|http://activemq.apache.org/activemq-performance-module-users-manual.html] needs to be updated as well. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (AMQ-3280) Add support for message selectors and message headers in maven-activemq-perf-plugin.

Posted by "Dejan Bosanac (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dejan Bosanac resolved AMQ-3280.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 5.6.0
         Assignee: Dejan Bosanac

Patch applied with svn revision 1091434. Thanks!

> Add support for message selectors and message headers in maven-activemq-perf-plugin.
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-3280
>                 URL: https://issues.apache.org/jira/browse/AMQ-3280
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Performance Test
>    Affects Versions: 5.5.0
>         Environment: maven-activemq-perf-plugin, message selectors
>            Reporter: Torsten Mielke
>            Assignee: Dejan Bosanac
>              Labels: maven-activemq-perf-plugin, selector
>             Fix For: 5.6.0
>
>         Attachments: AMQ-3280.patch
>
>
> The maven ActiveMQ performance plugin can be used as a general test framework. 
> It currently lacks support for specifying message selectors in the consumer. 
> I request this support to be added and attach a possible implementation. 
> In this implementation, the consumer additionally supports the following configuration option:
> {code}
> -Dconsumer.messageSelector="MyHeader = 'MyValue' AND JMSType = 'car'"
> {code}
> You can specify message selector criterias, as explained in http://activemq.apache.org/selectors.html. However this implementation only supports header based criterias. 
> In order to produce messages that match the message selector of the consumer it is necessary to also extend the producer to support message headers. 
> On the producer side message headers can be specified using this arguments
> {code}
> -Dproducer.header="JMSType=car:MyHeader=MyValue"
> {code}
> whereby each header follows the syntax name=value and multiple headers can be separated using ':' on the same line. 
> There can only be one occurrence of -Dproducer.header. If multiple are specified, they will override each other. 
> Hence multiple headers need to be separated by ':'
> The sample message header configuration of the producer above will match the message selector configuration of the consumer above.
> If this patch gets accepted, the documentation of the [maven-activemq-perf-plugin|http://activemq.apache.org/activemq-performance-module-users-manual.html] needs to be updated as well. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira