You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Jose Alberto Fernandez Parejo <ja...@indra.es> on 2019/02/20 09:10:46 UTC

Problem sending to exchange

Hello everyone,

We have just discover this group and I would like to make one question

We are using rabbitmq broker and we would like to use qpid-cpp-1.38.0
API to send/receive message to/from rabbitmq broker.
When we send to a queue works ok. But the problem is when we try to send
to a exchange.Is there any way to send to an exchange from
qpid-cpp-1.38.0 to rabbitmq broker?

Thanks in adavance
Regards

________________________________

Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.

This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.

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


Re: Problem sending to exchange

Posted by Jose Alberto Fernandez Parejo <ja...@indra.es>.
Thank you so much.

We have changed and it is working



On 02/20/2019 09:23 AM, Gordon Sim wrote:
> On 20/02/2019 9:10 am, Jose Alberto Fernandez Parejo wrote:
>> We are using rabbitmq broker and we would like to use qpid-cpp-1.38.0
>> API to send/receive message to/from rabbitmq broker.
>> When we send to a queue works ok. But the problem is when we try to send
>> to a exchange.Is there any way to send to an exchange from
>> qpid-cpp-1.38.0 to rabbitmq broker?
>
> You don't describe what the problem you are having is. To send to an
> exchange on rabbitmq via the 1.0 plugin[1] you use the '/exchange/'
> prefix to the address. The qpid::messaging API treats the '/' as
> special, separating the address from a 'subject'. To avoid that you
> can quote the address. So e.g. try sending to:
> "'/exchange/my-exchange/'" or "'/exchange/my-exchange/my-key'"
>
> The rabbitmq 1.0 plugin also recognises '/topic/' prefix is a shortcut
> for the amq.topic standard exchange so you could also do
> "'/topic/my-key'"
>
>
> [1] https://github.com/rabbitmq/rabbitmq-amqp1.0/blob/v3.7.12/README.md
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
> For additional commands, e-mail: users-help@qpid.apache.org
>
> .
>


________________________________

Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.

This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.

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


Re: Qpid Proton vs Qpid C++

Posted by Gordon Sim <gs...@redhat.com>.
On 21/02/2019 2:52 pm, Jose Alberto Fernandez Parejo wrote:
> Hello All,
> 
> We have to connect a C application to an AMQP1.0 peer (rabbitmq and
> other gateway using AMQP1.0).
> 
> We plan to create a simple interface with basic oriented connection
> primitives (open, connect, send, received, close,...) in order to be
> easy to change the current SW to connect to AMQP connection.
> 
> We have installed and make tests with qpid proton and qpi c++.
> For qpid c++ we have seen a basic correspondence with what we intent to 
> do :
> (1) Establishes the connection
> (2) Creates a session
> (3) Creates a receiver
> (4) Creates a sender that sends
> (5) Receives the message
> (6) Closes the connection
> 
> But for qpid proton, this basic correspondence cannot be set

Not sure exactly what you mean there but you can certainly do all of 
those things with the proton c++ API. In fact you can probably use the 
simple_recv.cpp example as is and run it against rabbitmq.

> Since qpid c++ needs qpid proton for AMQP1.0 support. We are wondering
> if, qpid proton has this basic primitive correspondence?
> 
> what are the C/C++ API differences between qpid proton and qpid c++?

The biggest difference really is one of API style. The proton c++ api is 
event driven, the qpid::messaging API is more synchronous, with library 
controlled IO thread(s) distinct from the applictaion thread.

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


Qpid Proton vs Qpid C++

Posted by Jose Alberto Fernandez Parejo <ja...@indra.es>.
Hello All,

We have to connect a C application to an AMQP1.0 peer (rabbitmq and
other gateway using AMQP1.0).

We plan to create a simple interface with basic oriented connection
primitives (open, connect, send, received, close,...) in order to be
easy to change the current SW to connect to AMQP connection.

We have installed and make tests with qpid proton and qpi c++.
For qpid c++ we have seen a basic correspondence with what we intent to do :
(1) Establishes the connection
(2) Creates a session
(3) Creates a receiver
(4) Creates a sender that sends
(5) Receives the message
(6) Closes the connection

But for qpid proton, this basic correspondence cannot be set

Since qpid c++ needs qpid proton for AMQP1.0 support. We are wondering
if, qpid proton has this basic primitive correspondence?

what are the C/C++ API differences between qpid proton and qpid c++?

Thanks for your support.

Regards

________________________________

Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.

This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.

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


Re: Problem sending to exchange

Posted by Gordon Sim <gs...@redhat.com>.
On 20/02/2019 9:10 am, Jose Alberto Fernandez Parejo wrote:
> We are using rabbitmq broker and we would like to use qpid-cpp-1.38.0
> API to send/receive message to/from rabbitmq broker.
> When we send to a queue works ok. But the problem is when we try to send
> to a exchange.Is there any way to send to an exchange from
> qpid-cpp-1.38.0 to rabbitmq broker?

You don't describe what the problem you are having is. To send to an 
exchange on rabbitmq via the 1.0 plugin[1] you use the '/exchange/' 
prefix to the address. The qpid::messaging API treats the '/' as 
special, separating the address from a 'subject'. To avoid that you can 
quote the address. So e.g. try sending to: "'/exchange/my-exchange/'" or 
"'/exchange/my-exchange/my-key'"

The rabbitmq 1.0 plugin also recognises '/topic/' prefix is a shortcut 
for the amq.topic standard exchange so you could also do "'/topic/my-key'"


[1] https://github.com/rabbitmq/rabbitmq-amqp1.0/blob/v3.7.12/README.md

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