You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by huntc <hu...@mac.com> on 2010/06/19 04:01:01 UTC
Problem subscribing to a topic after machine wakes from sleeping
Hi there,
I have a broker on machine A that publishes a topic for machine B to
subscribe to. Machine A shuts down each night at 12am and powers up at 5am.
Machine B sleeps at 12am and wakes up at 5am (as distinct from powering
down/up; just in case this is relevant).
What I'm finding is that when machine B sleeps/wakes it does not appear to
be connected to the topic any longer. I have verified this by observing that
there is no ActiveMQ.Advisory.Consumer.Topic.<topicname> after about
12am (my Hyperic monitoring tool confirms this). In addition when I look at
the AMQ console on machine A after 5am, there is no connection for machine B
(where there was one the night before).
If I restart my subscriber application on machine B then all is again well.
I'm using AMQ v.5.3.1. In addition here is my Spring configuration for
subscribing for the topic:
<bean id="activeMQConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL"
value="tcp://192.168.1.13:61616" />
</bean>
<bean id="jms-receiver"
class="org.apache.activemq.camel.component.ActiveMQComponent">
<property name="connectionFactory" ref="activeMQConnectionFactory"
/>
</bean>
Any ideas on what I may be able to do to circumvent the issue I'm seeing?
Kind regards,
Christopher
--
View this message in context: http://old.nabble.com/Problem-subscribing-to-a-topic-after-machine-wakes-from-sleeping-tp28932246p28932246.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Problem subscribing to a topic after machine wakes from sleeping
Posted by Gary Tully <ga...@gmail.com>.
thanks for posting back to close the loop :-)
On 23 June 2010 14:08, huntc <hu...@mac.com> wrote:
>
> Turns out that this is a Spring 2.5.6 issue and that one has to upgrade to
> Spring 3 to resolve it. Please see the discussion on the Camel forum for
> more information:
>
>
> http://camel.465427.n5.nabble.com/Problem-with-maintaining-a-JMS-subscription-after-waking-from-sleep-td510193.html
> --
> View this message in context:
> http://old.nabble.com/Problem-subscribing-to-a-topic-after-machine-wakes-from-sleeping-tp28932246p28971604.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
--
http://blog.garytully.com
Open Source Integration
http://fusesource.com
Re: Problem subscribing to a topic after machine wakes from
sleeping
Posted by huntc <hu...@mac.com>.
Turns out that this is a Spring 2.5.6 issue and that one has to upgrade to
Spring 3 to resolve it. Please see the discussion on the Camel forum for
more information:
http://camel.465427.n5.nabble.com/Problem-with-maintaining-a-JMS-subscription-after-waking-from-sleep-td510193.html
--
View this message in context: http://old.nabble.com/Problem-subscribing-to-a-topic-after-machine-wakes-from-sleeping-tp28932246p28971604.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.