On Wed, Mar 26, 2008 at 1:45 PM, Sebastian Gomez <[EMAIL PROTECTED]> wrote:
> Hello.
>
>  I've found a new obstacle in my project using ServiceMix: I am trying
>  to read the messages sent to an ActiveMQ Topic defined in ServiceMix
>  from a remote machine. I've tried looking for the messages using the
>  ActiveMQ WebBrowser and the JConsole, but it seems the topics don't
>  receive any messages (although the topic does appear, empty). In my
>  machine executing ServiceMix I am able to see the messages perfectly
>  stored in the queue, so the problem comes when connecting remotely,
>  not when persisting. I've tried connecting to the ServiceMix queue
>  before, during, and after message persistence in case I was not
>  receiving the messages because of subscribing too late to the topic,
>  but whatever the scenario my queue in the remote machine is blank.
>
>  I've tried various configuration in the activemq.xml file of the
>  remote machine, but without success. Maybe the problem is there, I am
>  quite new to ActiveMQ, I have read a few guides already, but maybe my
>  knowledge is insufficient yet.
>
>  I've run out of ideas, so I'm willing to try out anything that you
>  think could work.

OK, I'm not sure I follow you 100%, so let ask some questions.

So you are sending messages to an ActiveMQ topic inside of ServiceMix
on machine A. Then you try to read the messages from the same ActiveMQ
topic inside of ServiceMix from machine B and there are no messages.
Correct?

First off, topics are not going to hold messages if there is no active
subscriber unless you configure the subscription to be durable. If the
subscription is durable, then the broker will hold all messages for a
given consumer while it is offline. That way when it comes back online
it will receive all the messages to the topic while it was gone. Are
you using durable subscriptions?

The easiest way to see what's happening is via Jconsole on machine A.
Jconsole will display the consumerCount, the enqueueCount, the
dequeueCount, etc. This will tell you if any messages have flowed
through the topic.

Bruce
-- 
perl -e 'print unpack("u30","D0G)[EMAIL 
PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Reply via email to