Is there a way to do this for CPP?
I've basically tried to replicate the functionality with AMQ CMS but when I
use the send command and change the queue from "oldQueue" to "newQueue", I
receive an error message:
This producer can only send messages to "oldQueue";
basic code flow without actually typing in the code is:
Create new Factory
Set broker URI
Create Message Producer with a temp queue
Create a new queue
use session to create message
Message Producer send using new queue and message;
Re: AMQ CPP - How do you set up multiple destination for one producer
On 10/18/19 8:00 AM, JackOfAllTrades wrote:
> Answering my own question....again....
> So basically, just create the producer without initializing with a
> queue(temporary or otherwise). This seems to be different behavior from CMS
> then of JMS
Since you don't provide your code it is unclear what exactly you did but
from the sounds of it that is behavior of both JMS and CMS. A JMS
MessageProducer that is created with a destination instead of null as
the arg would be tied to that destination for its lifetime.