Thank you very much Gordon, all resolved successfully.

Q

-----Original Message-----
From: Gordon Sim [mailto:[email protected]] 
Sent: Thursday, July 03, 2014 3:28 PM
To: [email protected]
Subject: Re: qpid cpp pub/sub

On 07/03/2014 04:42 AM, Quynh Duong wrote:
> //C++ Consumer
> string address = "topic://usa.news"; //tried all possible combo 
> including "usa.news" alone

You need to have nested quotes, i.e.

   string address = "'topic://usa.news'";

The qpid::messaging address scheme treats '/' as a separator between node name 
and subject. To have a node name that includes a '/' you need to quote the 
whole name.

[...]
> On a related note, the following connection URL on Java works with JBOSS A-MQ 
> authentication:
> amqp://guest:guest@localhost:5672
>
> while c++ connection options:
> {username: guest, password: guest, protocol: amqp1.0} will fail at 
> authentication with message from broker:
> username [null] or invalid password

Try adding sasl_mechanisms:PLAIN to your connection options.

If that still fails can you get a protocol trace (e.g. export 
QPID_LOG_ENABLE=trace+:Protocol before running) for the failed connection 
attempt?


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected] For additional 
commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to