activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Broker needs a restart for routing to work
Date Mon, 23 Jul 2012 12:51:51 GMT
Hi Alistair,

I think your routing problem is that your topic doesn't have any
consumers so the message is discarded (that's how topic works, the
message is only sent to current consumers). As soon as you get your
consumer up and running everything works fine.

Regards
-- 
Dejan Bosanac
Senior Software Engineer | FuseSource Corp.
dejanb@fusesource.com | fusesource.com
skype: dejan.bosanac | twitter: @dejanb
blog: http://www.nighttale.net
ActiveMQ in Action: http://www.manning.com/snyder/


On Mon, Jul 23, 2012 at 12:30 PM, Alistair Young
<Alistair.Young@uhi.ac.uk> wrote:
> I've just noticed in 5.6.0 that the routing doesn't work until you
> either send a dummy message to the start of a route to 'create the
> topic/wake it up' it seems, or restart the broker after the client has
> connected:
>
> wake-up method:
> - start broker
> - send message to topicA which should be routed to topicB - this message
> is lost. The routing doesn't work for the first message
> - send message to topicA which should be routed to topicB
> - connect durable topic subscriber to topicB
> - consumer gets message on topicB
>
> restart method:
> - start broker
> - connect durable topic subscriber to topicB
> - send message to topicA which should be routed to topicB
> - nothing happens
> - send more message to topicA - all are lost
> - restart broker
> - connect durable topic subscriber to topicB
> - send message to topicA which should be routed to topicB
> - consumer gets message on topicB
>
> the sending and consuming are all via STOMP. It seems to need topicA to
> have been created by first sending a message to it. e.g. out of the box
> routing doesn't do anything until the first message has been sent.
> Clients can connect and consume after that. If a client has already
> connected to a route that has not been used before a broker restart is
> required before it can get any messages from the route.
>
> Is this just normal behaviour?
>
> thanks,
>
> Alistair
>
>
>
>
> -------------------
> Alistair Young
> Senior Software Engineer
> UHI@Sabhal Mòr Ostaig

Mime
View raw message