Chris Richardson wrote > I think you might mean to use createReceiver (to create a new > receiver), not getReceiver (to get an existing one). Note the > documentation for the getReceiver call specifies "@exception KeyError > if there is none for that name."
Apologies, my question was a little unclear. I'm creating a receiver with the given address and then later in my code I'm trying to get that same receiver so that I can manually close it. I could keep track of it by doing this: Receiver r = session.createReceiver(addr); ... ... r.close(); I was just trying to avoid that because 1) The "..." in my code is a lot of separation. The creation of a receiver and the deletion of it is actually in totally different functions. 2) If my Session is already keeping track of all of its Receivers, making my own list of Receivers seems redundant. If that is still unclear, I can post a code example to make it more clear what I'm trying to do. -- View this message in context: http://qpid.2158936.n2.nabble.com/C-Messaging-API-getReceiver-topic-subject-tp7663715p7663718.html Sent from the Apache Qpid users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
