Have you stepped through it with a debugger?  Do you successfully run to
the end of the client code?

If so, try running against a non-embedded broker.  If you don't get
messages delivered there either but you've confirmed that you're really
executing the sendMessage() call, use the web console to see how many
consumers are connected and how many messages have been enqueued; if either
number is zero, that's a problem you'll need to investigate.

So I wrote all of that and then took a second look at the code, and I
realized that your client looks to me like it'll exit as soon as it sends
the message; are you sure that's not what's going on?

Tim
On Apr 29, 2015 10:04 AM, "sarge" <aga...@gmail.com> wrote:

> Hi, I am in JMS and ActiveMQ. I want to create a ClientProducer who sends a
> message and ClientConsumer who receives the message asynchronously.
> ClientProducer sends a message, but ClientConsumer doesn't receive the
> message.
>
> I use ActiveMQServer as a broker
>
> Server.java <http://pastebin.com/Wf04cmq9>
>
> And this is the client code
>
> Client.java <http://pastebin.com/6XpndJgc>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ClientConsumer-doesn-t-receive-the-message-tp4695859.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to