Here is what I am doing however my receiver does not get any exception stating that the Exchange has been removed.
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. On Tue, Sep 10, 2013 at 11:01 AM, Gordon Sim <g...@redhat.com> wrote: > On 09/10/2013 03:50 PM, Rajesh Khan wrote: > >> Since there is no way to delete the queues. For now I am testing to see if >> the topics get deleted when I close the connection that created them. >> My connection string is: >> >> std::string queue_name = std::string("amq.topic/") + Name_Of_Topic ; >> std::string sender_string = queue_name +";{create:always, delete:sender, >> node:{type:topic}}"; >> > > The point of using a single exchange as the base for all topics is that > you don't need to do the delete (and in this case, since you are using > amq.topic, which is a preconfigured exchange, you should not use create > either as that will cause an exception). > > sender = session.createSender(sender_**string) ; >> >> Here is what I am doing >> connection.close(); >> >> and this is the error I get ? Any suggestion on why I am getting the >> following error? >> >> Unhandled exception at 0x7542c41f (KernelBase.dll) in WOPR.exe: Microsoft >> C++ exception: qpid::messaging::SessionError at memory location >> 0x0030f87c.. >> >> >> On Tue, Sep 10, 2013 at 10:41 AM, Gordon Sim <g...@redhat.com> wrote: >> >> On 09/09/2013 06:35 PM, Darryl L. Pierce wrote: >>> >>> I just used the spout example app on a fresh Qpid broker (no existing >>>> messages, exchanges or queues): >>>> >>>> $ ./spout "my-queue;{create:always, delete:always, >>>> node:{type:topic}}" >>>> >>>> and afterward found no queue. >>>> >>>> >>> Just for clarification, with the node type specified as 'topic', no queue >>> would even be created. An exchange (in this case called 'my-queue') would >>> be created, >>> >>> >>> >>> >>> ------------------------------****----------------------------** >>> --**--------- >>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.****org< >>> users-unsubscribe@qpid.**apache.org <users-unsubscr...@qpid.apache.org>> >>> >>> For additional commands, e-mail: users-h...@qpid.apache.org >>> >>> >>> >> > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > users-unsubscribe@qpid.apache.**org<users-unsubscr...@qpid.apache.org> > For additional commands, e-mail: users-h...@qpid.apache.org > >