On 09/10/2013 04:19 PM, Rajesh Khan wrote:
Here is what I am doing however my receiver does not get any exception
stating that the Exchange has been removed.
The exchange isn't removed. There is only one, statically created (or
even preconfigured) exchange. Distinct topics are then simply the
bindings of the interested receivers which clean themselves up
automatically.
On the sender side
std::string queue_name = std::string("amq.topic/") + TopicName;
std::string sender_string = queue_name +";{node:{type:topic}}";
sender = session.createSender(sender_string) ;
...
...
//Now closing the connection so that exchange state alters
connection.close();
However even after closing the topic connection my receiver does not get an
alert.
To get a notification message when the sender is disconnected, see the
suggestion in my other mail (exclusive, auto-delete queue with
alternate-exchange set).
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]