You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Axel Podehl (JIRA)" <ji...@apache.org> on 2013/07/16 10:54:48 UTC

[jira] [Created] (QPID-4992) preserve all AMQP properties in JMS AMQP 1.0 API, so AMQP->JMS->AMQP works

Axel Podehl created QPID-4992:
---------------------------------

             Summary: preserve all AMQP properties in JMS AMQP 1.0 API, so AMQP->JMS->AMQP works
                 Key: QPID-4992
                 URL: https://issues.apache.org/jira/browse/QPID-4992
             Project: Qpid
          Issue Type: Improvement
          Components: Java Client
    Affects Versions: 0.22
         Environment: all
            Reporter: Axel Podehl


As I understand from QPID-3380 there is no way to retrieve all AMQP header properties (e.g. contentType) with the Java API. 

In my case, I have a generic JMS record&replay program and would want to use it to record an AMQP message and replay it, simply using the QPid API, but unless I do some nasty type-casts, important AMQP properties are lost, for example AMQP content type. 

Interestingly enough, if I use the ActiveMQ transport transformer and receive AMQP messages through the ActiveMQ JMS API, all properties are copied for me: 
https://cwiki.apache.org/confluence/display/ACTIVEMQ/AMQP

So receiving an AMQP messages using the ActiveMQ JMS API gives me more information than with the Qpid AMQP JMS API, which is strange.
Qpid's JMS API should be the expert on AMQP properties, not ActiveMQ's message transformer.

Wouldn't it make sense to deploy the same mapping of AMQP to JMS properties (https://cwiki.apache.org/confluence/display/ACTIVEMQ/AMQP) in the QPid API itself ? 
Or at least have an option (e.g. in the ConnectionFactory) to do so ? 

That way a bridge of AMQP -> JMS -> AMQP wouldn't loose important information but could still stick with the real JMS API. 

Please note, it's quite common for JMS providers to extend the list of properties with a set of properties have a 'JMS' (or better a 'JMSX') prefix. For example MQ:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=%2Fcom.ibm.mq.csqzaw.doc%2Fuj25450_.htm


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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