camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-255) Way to send JMS MapMessage and ByteMessage from JMS component
Date Thu, 06 Dec 2007 19:32:27 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40806
] 

Claus Ibsen commented on CAMEL-255:
-----------------------------------

I think the unit test method for testing the bytes is a copy/paste error from the other test.
(map)

It is named: testSendMapMessage() in both unit tests (for byte and map).

> Way to send JMS MapMessage and ByteMessage from JMS component
> -------------------------------------------------------------
>
>                 Key: CAMEL-255
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-255
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-jms
>            Reporter: Roman Kalukiewicz
>             Fix For: 1.3.0
>
>         Attachments: jms-binding.patch
>
>
> Current JMSBinding doesn't allow to send JMS ByteMessage and MapMessage. Natural behavior
would be to send those messages if body contains byte[] and Map. Now if you want those messages
to be sent you have to create them yourself, that cannot be done easily as messages require
JMS session to be created.
> Patch applied represents {{BytesMessage}}s as {{byte[]}} body.
> Moreover when {{byte[]}} body arrives it is sent as {{BytesMessage}}. When {{Map}} body
arrives it tries to create {{MapMessage}} -- if it cannot be created (for example because
map elements are not primitives) then if falls back to previous behaviour - creates {{ObjectMessage}}.
> It means that JMS component is now symmetric -- if {{BytesMessage}} is received then
it is sent as {{BytesMessage}}. If {{MapMessage}} is received then {{MapMessage}} is sent.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message