Description
When producer is created without default destination roducer = session.createProducer(null) and message is sent also without specifiing desination producer.send(message), the following exception is thrown
Exception in thread "main" java.lang.UnsupportedOperationException: Cannot specify destination if producer has a default destination at org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.checkDefaultDestination(ActiveMQMessageProducer.java:339) at org.apache.activemq.artemis.jms.client.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:190) ...
The error message in the exception is clearly wrong.
Attachments
Issue Links
- links to