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."

HTH

Chris

On 1 June 2017 at 16:13, mottese <mott...@sandia.gov> wrote:
> Hi, I'm trying to use getReceiver, but am not getting the results I'm
> expecting. For example, this is what I'm doing:
>
>   Session session = con.getSession();
>   Address addr("amq.topic/mySubject");
>   session.createReceiver(addr);
>   ...
>   ...
>   Receiver r = session.getReceiver("amq.topic/mySubject");
>
> This is throwing a KeyError and I can't figure out why. Any help would be
> appreciated.
>
>
>
>
> --
> View this message in context: 
> http://qpid.2158936.n2.nabble.com/C-Messaging-API-getReceiver-topic-subject-tp7663715.html
> Sent from the Apache Qpid users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
>



-- 
Chris Richardson, System Architect
c...@fourc.eu

FourC AS, Vestre Rosten 81, Trekanten, NO-7075 Tiller, Norway
www.fourc.eu

Follow us on LinkedIn, Facebook, Google+ and Twitter!

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to