You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Nicolas Bouillon (JIRA)" <ji...@apache.org> on 2009/03/03 15:38:00 UTC
[jira] Created: (CAMEL-1414) JMSMessage vanishes attachments
JMSMessage vanishes attachments
-------------------------------
Key: CAMEL-1414
URL: https://issues.apache.org/activemq/browse/CAMEL-1414
Project: Apache Camel
Issue Type: Bug
Components: camel-jms
Affects Versions: 2.0.0
Reporter: Nicolas Bouillon
When using this kind of route
<from uri="activemq:queue:test"/>
<camel:process ref="mailProcessor" />
<to uri="smtp://localhost:25?to=user@localhost" />
and trying to enrich the message in the mailProcessor with
exchange.getIn().addAttachment("attachement.txt",
new DataHandler("Hello world", "text/plain"));
The received mail doesn't contains any attachment.
If the input "from" is a "direct" instead of activemq, it works fine.
Inspecting source code, MessageSupport.copyFrom(Message that) does
getAttachments().putAll(that.getAttachments());
but the child class JmsMessage doesn't.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-1414) JMSMessage vanishes attachments
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-1414.
---------------------------------
Resolution: Fixed
Fix Version/s: 1.6.1
2.0.0
Applied patch with thanks to Nicolas.
trunk
http://svn.apache.org/viewvc?rev=749628&view=rev
1.x branch
http://svn.apache.org/viewvc?rev=749631&view=rev
> JMSMessage vanishes attachments
> -------------------------------
>
> Key: CAMEL-1414
> URL: https://issues.apache.org/activemq/browse/CAMEL-1414
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jms
> Affects Versions: 2.0.0
> Reporter: Nicolas Bouillon
> Assignee: Willem Jiang
> Fix For: 2.0.0, 1.6.1
>
> Attachments: JmsMessageCopyAttachments.diff
>
>
> When using this kind of route
> <from uri="activemq:queue:test"/>
> <camel:process ref="mailProcessor" />
> <to uri="smtp://localhost:25?to=user@localhost" />
> and trying to enrich the message in the mailProcessor with
> exchange.getIn().addAttachment("attachement.txt",
> new DataHandler("Hello world", "text/plain"));
> The received mail doesn't contains any attachment.
> If the input "from" is a "direct" instead of activemq, it works fine.
> Inspecting source code, MessageSupport.copyFrom(Message that) does
> getAttachments().putAll(that.getAttachments());
> but the child class JmsMessage doesn't.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1414) JMSMessage vanishes attachments
Posted by "Nicolas Bouillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Bouillon updated CAMEL-1414:
------------------------------------
Patch Info: [Patch Available]
> JMSMessage vanishes attachments
> -------------------------------
>
> Key: CAMEL-1414
> URL: https://issues.apache.org/activemq/browse/CAMEL-1414
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jms
> Affects Versions: 2.0.0
> Reporter: Nicolas Bouillon
> Attachments: JmsMessageCopyAttachments.diff
>
>
> When using this kind of route
> <from uri="activemq:queue:test"/>
> <camel:process ref="mailProcessor" />
> <to uri="smtp://localhost:25?to=user@localhost" />
> and trying to enrich the message in the mailProcessor with
> exchange.getIn().addAttachment("attachement.txt",
> new DataHandler("Hello world", "text/plain"));
> The received mail doesn't contains any attachment.
> If the input "from" is a "direct" instead of activemq, it works fine.
> Inspecting source code, MessageSupport.copyFrom(Message that) does
> getAttachments().putAll(that.getAttachments());
> but the child class JmsMessage doesn't.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-1414) JMSMessage vanishes attachments
Posted by "Nicolas Bouillon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nicolas Bouillon updated CAMEL-1414:
------------------------------------
Attachment: JmsMessageCopyAttachments.diff
Attached patch against components/camel-jms/
> JMSMessage vanishes attachments
> -------------------------------
>
> Key: CAMEL-1414
> URL: https://issues.apache.org/activemq/browse/CAMEL-1414
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jms
> Affects Versions: 2.0.0
> Reporter: Nicolas Bouillon
> Attachments: JmsMessageCopyAttachments.diff
>
>
> When using this kind of route
> <from uri="activemq:queue:test"/>
> <camel:process ref="mailProcessor" />
> <to uri="smtp://localhost:25?to=user@localhost" />
> and trying to enrich the message in the mailProcessor with
> exchange.getIn().addAttachment("attachement.txt",
> new DataHandler("Hello world", "text/plain"));
> The received mail doesn't contains any attachment.
> If the input "from" is a "direct" instead of activemq, it works fine.
> Inspecting source code, MessageSupport.copyFrom(Message that) does
> getAttachments().putAll(that.getAttachments());
> but the child class JmsMessage doesn't.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1414) JMSMessage vanishes attachments
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-1414:
-----------------------------------
Assignee: Willem Jiang
> JMSMessage vanishes attachments
> -------------------------------
>
> Key: CAMEL-1414
> URL: https://issues.apache.org/activemq/browse/CAMEL-1414
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jms
> Affects Versions: 2.0.0
> Reporter: Nicolas Bouillon
> Assignee: Willem Jiang
> Attachments: JmsMessageCopyAttachments.diff
>
>
> When using this kind of route
> <from uri="activemq:queue:test"/>
> <camel:process ref="mailProcessor" />
> <to uri="smtp://localhost:25?to=user@localhost" />
> and trying to enrich the message in the mailProcessor with
> exchange.getIn().addAttachment("attachement.txt",
> new DataHandler("Hello world", "text/plain"));
> The received mail doesn't contains any attachment.
> If the input "from" is a "direct" instead of activemq, it works fine.
> Inspecting source code, MessageSupport.copyFrom(Message that) does
> getAttachments().putAll(that.getAttachments());
> but the child class JmsMessage doesn't.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.