You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by BS <bs...@logisoft.ch> on 2018/08/23 20:17:00 UTC

STOMP anycastPrefix difference between 2.4.0 and 2.5.0 above

On my tests with STOMP and Artemis I found a little difference in behavoir
between 2.4.0 and 2.5.0 and above (newest 2.6.2).

With 2.4.0 I can use this acceptor configuration in broker.xml (I think it
is default):


When I SEND a message to destination "/queue/TestQ" Artemis creates a
durable ANYCAST queue and keeps the message until a client reads the message
with SUBSCRIBE.

With the same acceptor config using Version 2.5.0 and above (newest 2.6.2)
SEND the same message to destination "/queue/TestQ" Artemis creates a
non-durable MULTICAST queue. Because there is no consumer for the message it
is dropped immediately because no route.

To get the same behavoir in 2.6.2 I found the solution to add the parameter
"anycastPrefix=/queue/" in the acceptor element:


For full details see discussion with jbertram on
https://stackoverflow.com/questions/51770006/apachemq-artemis-keep-messages-with-no-route



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html

Re: STOMP anycastPrefix difference between 2.4.0 and 2.5.0 above

Posted by Justin Bertram <jb...@apache.org>.
The behavior in 2.4.0 was a bug which was fixed via this JIRA [1].
However, the documentation still indicates that anycast will be used by
default.  I'll fix that ASAP.


Justin

[1] https://issues.apache.org/jira/browse/ARTEMIS-1596

On Thu, Aug 23, 2018 at 3:17 PM BS <bs...@logisoft.ch> wrote:

> On my tests with STOMP and Artemis I found a little difference in behavoir
> between 2.4.0 and 2.5.0 and above (newest 2.6.2).
>
> With 2.4.0 I can use this acceptor configuration in broker.xml (I think it
> is default):
>
>
> When I SEND a message to destination "/queue/TestQ" Artemis creates a
> durable ANYCAST queue and keeps the message until a client reads the
> message
> with SUBSCRIBE.
>
> With the same acceptor config using Version 2.5.0 and above (newest 2.6.2)
> SEND the same message to destination "/queue/TestQ" Artemis creates a
> non-durable MULTICAST queue. Because there is no consumer for the message
> it
> is dropped immediately because no route.
>
> To get the same behavoir in 2.6.2 I found the solution to add the parameter
> "anycastPrefix=/queue/" in the acceptor element:
>
>
> For full details see discussion with jbertram on
>
> https://stackoverflow.com/questions/51770006/apachemq-artemis-keep-messages-with-no-route
>
>
>
> --
> Sent from:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
>