but when i used .8 api then many times when the depth of queue is one, then queue.get returns empty data and the contentlength of the message also shows zero inspite of an existing message.
and the message becomes difficult ot retrive --- On Mon, 7/25/11, Gordon Sim <[email protected]> wrote: > From: Gordon Sim <[email protected]> > Subject: Re: issues migrating from qpid0.8 to qpid0.10 > To: [email protected] > Date: Monday, July 25, 2011, 8:57 AM > On 07/25/2011 09:54 AM, Nithesh > Shetty wrote: > > Hi, > > > > I have been using Qpid0.8 version where i could > declare a exchange, queue and there alternate queue and > exchange > > > > using the following option. > > > > QueueOptions lcQueueOptions; > > lcQueueOptions.setOrdering(FIFO); > > > > string lszAlterExchangeName = "ALTER_EXCHANGE" > > string lszAlterQueueName = "ALTER_QUEUE"; > > > > session.exchangeDeclare(arg::exchange = > lszAlterExchangeName, arg::exclusive = false, > > arg::durable = true, arg::autoDelete = false, > arg::type = "direct"); > > session.queueDeclare(arg::queue = lszAlterQueueName, > arg::exclusive = false, > > arg::durable = true, arg::autoDelete = false, > arg::arguments = lcQueueOptions); > > session.exchangeBind(arg::exchange = > lszAlterExchangeName, arg::queue = lszAlterQueueName, > arg::bindingKey = "ROUTE_KEY"); > > > > string lszExchangeName = "EXCHANGE" > > string lszQueueName = "QUEUE" > > > > session.exchangeDeclare(arg::exchange = > lszExchangeName, arg::exclusive = false, > > arg::durable = true, arg::autoDelete = false, > arg::type = "direct"); > > session.queueDeclare(arg::queue = lszQueueName, > arg::exclusive = false, > > arg::durable = true, arg::autoDelete = false, > arg::arguments = lcQueueOptions, arg::alternateExchange = > lszAlterExchangeName); > > session.exchangeBind(arg::exchange = lszExchangeName, > arg::queue = lszQueueName, arg::bindingKey = "ROUTE_KEY"); > > > > Now in qpid0.10 this api all changed. > > > > They have introduced Address. > > > > can u please give some ex of how to incorporate the > above code into qpid0.10.. > > The old client API (as you have used here) is still > included. However > for details on the new messaging API see: > http://qpid.apache.org/books/0.10/Programming-In-Apache-Qpid/html/ > > --------------------------------------------------------------------- > Apache Qpid - AMQP Messaging Implementation > Project: http://qpid.apache.org > Use/Interact: mailto:[email protected] > > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
