activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: How to send a textMessage to an exising queue (destination)
Date Fri, 29 Apr 2011 13:59:08 GMT
On Fri, 2011-04-29 at 06:40 -0700, mruan wrote:
> Then it's will be very strange indeed that nobody needs to do what I am
> supposed to do. Why do we have to create a queue in order to send a message
> even if the queue exists already?
> I study the faq's carefully which Tim told me to do, but I am sorry that I
> still don't find the solution. Put the problem in another way:
> I don't necessarily have to use asynchronous method, I use "receive" method
> which is synchronous. First time I create a queue and I am able to send
> messages to that queue, but second time because the queue is already there,
> so I must not create it again, just send another messages to the existing
> queue, but I don't know how, nobody?

So are you asking why you have to call 'createQueue' on the client side?

If I understand what you asking then calling the createQueue doesn't
create a new one if there's already on there that matches the name
you've given it, it just create the local representation of the queue
object so that when you send a message or call receive the client code
knows that you are producing or consuming on.  

If that's not it maybe you can express your intent with some code to
make clear what you want the client to do.


Tim Bish
Twitter: tabish121

Connect at CamelOne May 24-26

The Open Source Integration Conference

View raw message