On 01/24/2011 08:45 AM, Gordon Sim wrote:
On 01/21/2011 05:20 PM, Carl Trieloff wrote:
I'm commonly needing to create a single receiver and then alter the
subscription (filters) on that receiver. I.e. add to the receiver and
remove from it.
In 0-10 this would be done with bind and unbind. It is possible to add
to the receiver with the new addressing with x-binding, but there is no
x-unbind...
The lack of x-unbind is not the issue here. The x-bindings for a link
are used to create bindings when the receiver/sender is created. Those
bindings are then destroyed (via unbind) when the receiver/sender is
closed.
What you are asking for is a means of dynamically altering the link
behind a receiver (specifically the details of the messages selected
for the link) without loss or duplication of the messages received.
yes, I want to add or remove rules/filters/routes/conditions (i.e. there
is more than one may to model this) to the receiver without tearing down
the receiver or interrupting it.
As this pattern is common, it might be good to add this pattern to the
addressing syntax without having to fall back to x- extensions or QMF
methods.
I think there are two points here. Firstly, whether filtering could be
expressed in the addressing syntax more simply (not requiring the use
of the x-bindings). Secondly whether the API should provide a means to
alter the filtering on a link (and if so how that should be done).
correct.
My inclination is to say yes to both questions. I've create a JIRA to
track the request: https://issues.apache.org/jira/browse/QPID-3018.
[Currently assigned to me just so it doesn't get lost, but it will be
some time before I'm able to focus on it.]
Thank you.
Carl.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]