On Fri, Feb 3, 2012 at 2:37 PM, Senthil Kumar, Sinduja (GE Healthcare) <[email protected]> wrote: > Hi, > > Iam a newbie to QPID. > > Can someone explain me how to set the addresses for Receiving Messages > from Multiple Sources. > >
You can use multiple binding keys to bind a queue to a topic exchange. So, the rest is to ref the documentation of C++ client API. I'm using Python, not familiar with C++ client API. > > For ex:, > > > > C++: > > Receiver receiver1 = session.createReceiver(address1); > > receiver1.setCapacity(10); > > Receiver receiver2 = session.createReceiver(address2); > > receiver2.setCapacity(10); > > Message message = session.nextReceiver().fetch(); > > std::cout << message.getContent() << std::endl; > > session.acknowledge(); // acknowledge message receipt > > > > what would be the nature of address1 and address2? > > Can someone tell me how to set theses addresses. > > > > Regards, > > Sinduja.R > > > > > --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:[email protected]
