Apache ActiveMQ ™ -- How do I send messages to different Destinations from a single MessageProducer

FAQ > JMS > How do I send messages to different Destinations from a single MessageProducer

How do I send messages to different Destinations from a single MessageProducer?

Create the MessageProducer using a null destination; then specify the destination each time you send...

MessageProducer producer = session.createProducer(null); ... producer.send(someDestination, message); ... producer.send(anotherDestination, message);

results matching ""

    No results matching ""