activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Shannon <christopher.l.shan...@gmail.com>
Subject Re: Receiving messages in a topic works local, but not remote
Date Sat, 25 Jul 2015 13:16:52 GMT
First, with your clients, did you call start on the connection?  It's a
common mistake and easy forget to do but I'm guessing you did that since it
worked with an embedded broker.

Second, are you connecting with your MessageListener before publishing your
messages or after? Your message consumer won't receive messages published
before it connected unless there is a durable subscription set up.

Third, for debugging, you can try increasing the logging to debug to see
exactly what is going on.
http://activemq.apache.org/how-do-i-change-the-logging.html  This should
give you information on connections established and where messages are
going.  Also, you can try using JMX to see what the state of the broker is.
That might give you some useful information to help debug this.
http://activemq.apache.org/jmx.html .

If the above things don't help, can you post your broker config and/or your
client code for the publisher and consumer?

-Chris

On Sat, Jul 25, 2015 at 5:29 AM, thejeed <dev@jeed.de> wrote:

> Hi @ll,
>
> I'm David, newbie to ActiveMQ. I'm using v5.11.1 as an embedded broker.
>
> What I want to do is to produce a message and deliver it using a topic. On
> the other side of the line, a client program establishes a connection to
> the
> broker, creates a TopicSubscriber and reacts via a MessageListener on
> incoming messages. So far, so good.
>
> Now, this all works as expected when server and client are running locally
> on the same system. As soon as I upload the broker to my server and start
> it, a connection seems to be established, but the MessageListener isn't
> executed anymore.
>
> Maybe it's a problem with the way I configure the broker? Here's how I do
> it:
>
>
>
> I'd be really glad for any advice on how to solve the problem or how to
> debug it.
>
> Kind regards,
>
> David
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Receiving-messages-in-a-topic-works-local-but-not-remote-tp4699825.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message