qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duong Quynh (FSU1.Z8.IP)" <Quyn...@fsoft.com.vn>
Subject RE: qpid cpp pub/sub
Date Thu, 03 Jul 2014 09:37:25 GMT
Thank you very much Gordon, all resolved successfully.

Q

-----Original Message-----
From: Gordon Sim [mailto:gsim@redhat.com] 
Sent: Thursday, July 03, 2014 3:28 PM
To: dev@qpid.apache.org
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: dev-unsubscribe@qpid.apache.org For additional commands, e-mail: dev-help@qpid.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message