History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SM-1348
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Gert Vanthienen
Reporter: Marcello Teodori
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
ServiceMix

Add support for mapping between JBI NormalizedMessage attachments and Camel Message attachments

Created: 11/May/08 09:42 AM   Updated: 09/Jul/08 10:26 AM
Component/s: servicemix-camel
Affects Version/s: 3.3
Fix Version/s: 3.3, 3.2.2

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works patch.diff 2008-06-28 01:04 PM Marcello Teodori 6 kb
File Licensed for inclusion in ASF works patch.diff 2008-05-28 08:33 AM Marcello Teodori 57 kb
Issue Links:
dependent
 

Patch Info: Patch Available


 Description  « Hide
Following the discussion on CAMEL-385, the new attachment support in Camel 1.4 (currently unreleased) requires modification in the servicemix-camel component to allow a correct bidirectional mapping between attachments in JBI Normalized Messages and Camel Messages.

Attached to this issue there's a patch file with my implementation, tested with a simple flow from a file:poller (servicemix-file) to a ftp:sender (ftp:sender) connected one to the other through a camel route. The attachment test is done using BinaryFileMarshaler to send a binary file. Unfortunately no JUnit tests are provided as I was not able to understand the existing ones in the servicemix-camel component in order to add the attachment verification.

The patch requires:

  • upgrading the Camel dependency to 1.4-SNAPSHOT (see SM-1347)
  • upgrading the Spring dependency to 2.5.4 as used by Camel 1.4-SNAPSHOT (see SM-1346)

I hope it can be useful for anyone trying to pass JBI messages with attachments through a Camel route, and eventually be included in a future version of servicemix.



 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Marcello Teodori - 20/May/08 08:50 AM
Upgraded patch for API change in Camel Endpoint (i.e. getContext becomes getCamelContex)

Marcello Teodori - 28/May/08 08:33 AM
upgraded patch to integrate changes from SM-1373 and latest changes in camel 1.4-SNAPSHOT

Marcello Teodori - 28/Jun/08 01:04 PM
upgraded patch after components projects split

Gert Vanthienen - 09/Jul/08 10:26 AM
Patch applied with thanks!

Fixed for components in http://svn.eu.apache.org/viewvc?view=rev&revision=675254
Backported the fix to SMX 3.2.2 in http://svn.eu.apache.org/viewvc?view=rev&revision=675262