Hello all,
It should be possible to send a text message to an EXISTING queue, and if the queue does not exist, NO new queue may be created, but how? I search al the way in the internet, it seems nobody has any trouble or need to do like me! Thanks in advance. Ming Ab Ovo Nederland B.V. Barbizonlaan 75 2908 ME Capelle aan den IJssel The Netherlands T: +31 (0)10 286 1533 E: <mailto:[email protected]> [email protected] F: +31 (0)10 286 1544 I: <http://www.ab-ovo.com/> www.ab-ovo.com M: +31 (0)6 110 42 619 KvK nr. 28084550 _______________________________________________ Ab Ovo Nederland is part of Ab Ovo International. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From: Ming Ruan [mailto:[email protected]] Sent: woensdag 27 april 2011 11:10 To: [email protected] Subject: RE: How to send a textMessage to an exising queue (destination) Hi Óscar, Thank you for your reply If the queue exist, messages are sent to the same queue "queueName", what are your symptons? è Then we see the messages arrived indeed in the queue queueName, that will be OK in this case. The trouble is when the queue queueName does NOT exist, a new queue named queueName will be created and this is NOT what I want! I want that in this case the program will return me a null point so that I know that there are something wrong. Our project demands that no new queues maybe created. Ming Ab Ovo Nederland B.V. Barbizonlaan 75 2908 ME Capelle aan den IJssel The Netherlands T: +31 (0)10 286 1533 E: <mailto:[email protected]> [email protected] F: +31 (0)10 286 1544 I: <http://www.ab-ovo.com/> www.ab-ovo.com M: +31 (0)6 110 42 619 KvK nr. 28084550 _______________________________________________ Ab Ovo Nederland is part of Ab Ovo International. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. From: Oscar Pernas [mailto:[email protected]] Sent: woensdag 27 april 2011 10:52 To: [email protected] Cc: [email protected] Subject: Re: How to send a textMessage to an exising queue (destination) Hi Ming, I think that I dont understand your problem at all but, if the queue exist, messages are sent to the same queue "queueName", what are your symptons? 2011/4/27 Ming Ruan <[email protected]> Dear developers, I am using activeMQ-CPP to develop an application in C++ As you may know that we can send a textMessage to an queue, in most case we use the following code: - Destination *destination = session->createQueue(queueName); - MessageProducer *producer = session->createProducer(destination); - TextMessage *message = session->createTextMessage( some text); - Producer->send(message); My question is: how can we send a textMessage to an existing queue (destination)? In other words: the queue (queueName) exists already, and it must NOT be created again! So I just want to send a textMessage to it without first to create it. Thanks in advance M. Ruan Ab Ovo Nederland B.V. Barbizonlaan 75 2908 ME Capelle aan den IJssel The Netherlands T: +31 (0)10 286 1533 E: <mailto:[email protected]> [email protected] F: +31 (0)10 286 1544 I: <http://www.ab-ovo.com/> www.ab-ovo.com M: +31 (0)6 110 42 619 KvK nr. 28084550 _______________________________________________ Ab Ovo Nederland is part of Ab Ovo International. This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -- Óscar Pernas Plaza.
