[prev in list] [next in list] [prev in thread] [next in thread]
List: activemq-users
Subject: addTemporaryDestination() not called on the client side when advisorySupport="False"
From: dpatel <dhpatel () factset ! com>
Date: 2018-09-19 1:51:14
Message-ID: 1537321874350-0.post () n4 ! nabble ! com
[Download RAW message or body]
In my effort to debug why I keep getting the "Cannot publish to a delete
queue", I ran my example with activemqcpp code. I found that that on the
consumer side when I call
MessageProducer->send(replyTodestination, message)
ultimately it ends up calling
ActiveMQSessionKernel::send() in which it checks for isDeleted(). IsDeleted
checks the mValue map inside the options object in the producers connection
object. That map is empty which causes the "Cannot publish to deleted
destination message".
I dug a little further. The only way destinations can be added to the map is
by calling addTemporaryDestination() function on the option class. That
function is only called with advisory message or when creating a
temporaryQueue.
As per my understanding TempQueue will never work on the client side without
advisory messages. Am I missing something? If I am wrong please help
understand what I need to do to fix the message.
I have tried Activemqcpp version 3.6, 3.7, 3.9 with broker version 5.10.
Attached is my activemq.xml activemq.xml
<http://activemq.2283324.n4.nabble.com/file/t375533/activemq.xml>
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic