So, I did some playing around. And it looks like the filter configured this
way works fine with Qpid C++ broker, but doesn't really work with ActiveMQ.
The filter seems to be present in the attach commands, but seems to be
ignored by the broker.
2015-01-30 16:00:50 [Protocol] trace
[19d9dcef-2e7c-4738-b549-e8a3c5737c22]: 0 -> @attach(18)
[name="queue://responseQueue_0dd729c8-6782-4380-affb-05ce401a75d3",
handle=0, role=true, snd-settle-mode=2, rcv-settle-mode=0,
source=@source(40) [address="queue://responseQueue", durable=0, timeout=0,
dynamic=false, filter={:selector=@77567109365764 "status='licha'"}],
target=@target(41) [address="queue://responseQueue", durable=0, timeout=0,
dynamic=false], initial-delivery-count=0]
2015-01-30 16:00:50 [Protocol] trace
[19d9dcef-2e7c-4738-b549-e8a3c5737c22]: 0 <- @attach(18)
[name="queue://responseQueue_0dd729c8-6782-4380-affb-05ce401a75d3",
handle=0, role=false, snd-settle-mode=2, rcv-settle-mode=0,
source=@source(40) [address="queue://responseQueue", durable=0,
expiry-policy=:"session-end", timeout=0, dynamic=false,
filter={:selector=@77567109365764 "status='licha'"}], target=@target(41)
[address="queue://responseQueue"], incomplete-unsettled=false,
initial-delivery-count=0]
Anyone has an idea why it doesn't work? The Java client seems to work fine
with the selector and ActiveMQ.
Regards
Jakub
On Wed, Jan 28, 2015 at 5:41 PM, Jakub Scholz <[email protected]> wrote:
> Hi Hamid,
>
> Have you tried it without the brackets? E.g.
> respAddress = "'ResQueue; {link:{selector:\"uniqueAppID='"+
> uniqueAppID+"'\"}}"
>
> That is the way how the selectors for custom properties worked for me when
> I was playing with them.
>
> Regards
> Jakub
>
> On Wed, Jan 28, 2015 at 5:24 PM, Hamid.Shahid <[email protected]>
> wrote:
>
>> (
>
>
>
>