qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gordon Sim <g...@redhat.com>
Subject Re: qpid cpp pub/sub
Date Thu, 03 Jul 2014 08:27:31 GMT
On 07/03/2014 04:42 AM, Quynh Duong wrote:
> //C++ Consumer
> string address = "topic://usa.news"; //tried all possible combo including "usa.news"

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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org

View raw message