You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rajith Attapattu (JIRA)" <qp...@incubator.apache.org> on 2008/07/04 05:06:33 UTC

[jira] Closed: (QPID-803) Add multiple binding keys to a JMS Destination

     [ https://issues.apache.org/jira/browse/QPID-803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rajith Attapattu closed QPID-803.
---------------------------------


> Add multiple binding keys to a JMS Destination
> ----------------------------------------------
>
>                 Key: QPID-803
>                 URL: https://issues.apache.org/jira/browse/QPID-803
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Client
>    Affects Versions: M3
>            Reporter: Rajith Attapattu
>             Fix For: M3
>
>         Attachments: client.patch, common.patch
>
>
> Currently we can only bind a JMS destination using one key. But there are use cases where you may need to bind a queue using different binding keys to consume messages from different sources.
> The JMS Destination provides an abstraction to hide provider details. But from AMQP POV, a JMS destination has a dual nature.
> For a producer a destination represents a exchange/routingkey pair.
> For a consumer a destination should represent a queue and multiple bindings. 
> (Ideally it should be an array of the following tuple {exchange,queue,binding}, but this is difficult to express using a simple URL ).
> A single destination can be used for publishing, consuming or both, so we need our URL to capture all 3 use cases.
> Using the 0-10 protocol we can introduce a bindingKey option that contrains a coma separated binding keys as follows.
> Ex: Destination used only for publishing
> ------------------------------------------------------
> destination.myQueue = direct://amq.direct//myQueue?routingkey='stock'
> Ex: Destination used only for consuming
> -------------------------------------------------------
> destination.myQueue = direct://amq.direct//myQueue?bindingkey='car,van'
> (This binds a queue to the direct exchange twice using car and van as binding keys)
> Ex: Destination used for both consuming and publishing
> ------------------------------------------------------------------------------
> destination.myQueue = direct://amq.direct//myQueue?routingKey='vehicle'&bindingkey='car,van'
> (This binds a queue to the direct exchange twice using car and van as binding keys for the consumer, and will when the publisher uses it, it will push a message to the direct exchange with the routingKey vehicle)
> This has to be backward compatible with old URLs and optimized for the common case where only a routing key is specified. In such a case the routiing key is also used as the binding key

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