You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Roman Kalukiewicz (JIRA)" <ji...@apache.org> on 2008/03/14 19:53:32 UTC

[jira] Commented: (CAMEL-385) support attachments for better support of JBI and JAX-WS stuff

    [ https://issues.apache.org/activemq/browse/CAMEL-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41688#action_41688 ] 

Roman Kalukiewicz commented on CAMEL-385:
-----------------------------------------

Couldn't we think about solving this problem using message headers we already have?
Adding explicit attachments support is very 'technology' specific --- today we have headers, tomorrow attachments, then properties, flags, whatever appears in some technology.

I would rather assume, that message header is information that will be converted to technology-specific message if it meets some requirements (unlike properties that are used internally by Camel). One example of such requirement is the type of JMS properties that cannot be just an object.

Basically it is endpoint's responsibility to define what a body is and what a header is in terms of specific technology we integrate with. Then we can say, that in case of WS or JBI every header that is DataHandler is an attachment in this specific technology.

Such change is rather universal (suitable for attachments, and possibly other 'things' that might appear) and doesn't make our interface more complicated at all.

> support attachments for better support of JBI and JAX-WS stuff
> --------------------------------------------------------------
>
>                 Key: CAMEL-385
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-385
>             Project: Apache Camel
>          Issue Type: New Feature
>            Reporter: James Strachan
>             Fix For: 1.3.0
>
>         Attachments: patch.diff
>
>


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