You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Steve.V." <st...@sas.com> on 2013/02/21 18:24:13 UTC

Questions about AMQP support in release 5.8.0

Q1: When an AMQP client puts a text message on a destination, does it get
converted into a JMS TextMessage?

Q2: Can an AMQP client get a JMS TextMessage off of an ActiveMQ destination?

I ask those questions because I wonder if the following steps are possible:
   1. AMQP client puts a text message on a destination.
   2. A JMS or HTTP/REST client gets the message off of the queue.
   3. The JMS or HTTP/REST client puts a "TextMessage" response on a
destination.
   4. The AMQP client gets the text response off of the destination.

Q3: Is that a valid scenario?

Thanks in advance,
Stephen Vincent



-----
Stephen Vincent
--
View this message in context: http://activemq.2283324.n4.nabble.com/Questions-about-AMQP-support-in-release-5-8-0-tp4663895.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Questions about AMQP support in release 5.8.0

Posted by Hiram Chirino <hi...@hiramchirino.com>.
Ok first a little background:

We do convert AMQP message to JMS messages, but by default we convert them
in a way that provides the best AMQP fidelity for when your sending with
AMQP and receiving with AMQP.

There are 3 basic conversion strategies we support:
raw - Wraps the bytes of the AMQP message into a JMS BytesMessage.
jms - Maps headers of the AMQP message to JMS message headers and maps the
body of the AMQP message to JMS body.
native - Wraps the bytes of the AMQP message into a JMS BytesMessage and
also maps the headers of the AMQP message to headers on the JMS message.

By default we use the 'native' conversion strategy so that you can still
use JMS selectors against the message but you don't 'loose' any of fidelity
in the original AMQP message.

Q1: If you want messages converted to JMS TextMessages you should add the
'transformer=jms' query option to the AMQP transport's configuration.

Q2: Yes

Q3: Yes

On Thu, Feb 21, 2013 at 12:24 PM, Steve.V. <st...@sas.com> wrote:

> Q1: When an AMQP client puts a text message on a destination, does it get
> converted into a JMS TextMessage?
>
> Q2: Can an AMQP client get a JMS TextMessage off of an ActiveMQ
> destination?
>
> I ask those questions because I wonder if the following steps are possible:
>    1. AMQP client puts a text message on a destination.
>    2. A JMS or HTTP/REST client gets the message off of the queue.
>    3. The JMS or HTTP/REST client puts a "TextMessage" response on a
> destination.
>    4. The AMQP client gets the text response off of the destination.
>
> Q3: Is that a valid scenario?
>
> Thanks in advance,
> Stephen Vincent
>
>
>
> -----
> Stephen Vincent
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Questions-about-AMQP-support-in-release-5-8-0-tp4663895.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 

**

*Hiram Chirino*

*Engineering | Red Hat, Inc.*

*hchirino@redhat.com <hc...@redhat.com> | fusesource.com | redhat.com*

*skype: hiramchirino | twitter: @hiramchirino<http://twitter.com/hiramchirino>
*

*blog: Hiram Chirino's Bit Mojo <http://hiramchirino.com/blog/>*

Re: Questions about AMQP support in release 5.8.0

Posted by Christian Posta <ch...@gmail.com>.
You may wish to check the following docs for ActiveMQ's AMQP support:

http://activemq.apache.org/amqp.html


On Sat, Feb 23, 2013 at 5:32 AM, kimmking <ki...@gmail.com> wrote:

> it looks like activemq doesn't support AMQP protocol now
>
> 在 2013-2-22,上午1:24,Steve.V. [via ActiveMQ] <
> ml-node+s2283324n4663895h28@n4.nabble.com> 写道:
>
> > Q1: When an AMQP client puts a text message on a destination, does it
> get converted into a JMS TextMessage?
> >
> > Q2: Can an AMQP client get a JMS TextMessage off of an ActiveMQ
> destination?
> >
> > I ask those questions because I wonder if the following steps are
> possible:
> >    1. AMQP client puts a text message on a destination.
> >    2. A JMS or HTTP/REST client gets the message off of the queue.
> >    3. The JMS or HTTP/REST client puts a "TextMessage" response on a
> destination.
> >    4. The AMQP client gets the text response off of the destination.
> >
> > Q3: Is that a valid scenario?
> >
> > Thanks in advance,
> > Stephen Vincent
> > Stephen Vincent
> >
> >
> > If you reply to this email, your message will be added to the discussion
> below:
> >
> http://activemq.2283324.n4.nabble.com/Questions-about-AMQP-support-in-release-5-8-0-tp4663895.html
> > To unsubscribe from ActiveMQ - User, click here.
> > NAML
>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Questions-about-AMQP-support-in-release-5-8-0-tp4663895p4663967.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Re: Questions about AMQP support in release 5.8.0

Posted by kimmking <ki...@gmail.com>.
it looks like activemq doesn't support AMQP protocol now

在 2013-2-22,上午1:24,Steve.V. [via ActiveMQ] <ml...@n4.nabble.com> 写道:

> Q1: When an AMQP client puts a text message on a destination, does it get converted into a JMS TextMessage? 
> 
> Q2: Can an AMQP client get a JMS TextMessage off of an ActiveMQ destination? 
> 
> I ask those questions because I wonder if the following steps are possible: 
>    1. AMQP client puts a text message on a destination. 
>    2. A JMS or HTTP/REST client gets the message off of the queue. 
>    3. The JMS or HTTP/REST client puts a "TextMessage" response on a destination. 
>    4. The AMQP client gets the text response off of the destination. 
> 
> Q3: Is that a valid scenario? 
> 
> Thanks in advance, 
> Stephen Vincent
> Stephen Vincent
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://activemq.2283324.n4.nabble.com/Questions-about-AMQP-support-in-release-5-8-0-tp4663895.html
> To unsubscribe from ActiveMQ - User, click here.
> NAML





--
View this message in context: http://activemq.2283324.n4.nabble.com/Questions-about-AMQP-support-in-release-5-8-0-tp4663895p4663967.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.