Mandiax / soi-toolkit

Automatically exported from code.google.com/p/soi-toolkit
0 stars 0 forks source link

Use byte[] instead of String as default payload type in flows and tests #341

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Current default payload type is String - which means there will be an encoding 
dependent conversion from byte[] to String taking place for many flows (for 
example for: File to JMS).

The byte[] to String conversion (and String to byte[]) should not rely on 
default plattform encoding.

Another aspect is that we for JMS should use BytesMessage instead of 
TextMessage (the JMS message type is automatically chosen by the Mule 
JMS-transport based on payload type).

Proposal is to pass payloads as byte[] (or binary streams) without doing type 
conversions on the endpoints (inbound/outbound) and let transformers deal 
explicitly with encoding. That should also clarify responsibilities among the 
flow building blocks.

Note on backwards compatibility: Introducing this change will most probably 
break backwards compatibility with integration-components and flows generated 
with earlier versions.

Original issue reported on code.google.com by hakan.d...@gmail.com on 12 Jun 2013 at 8:26

GoogleCodeExporter commented 8 years ago

Original comment by hakan.d...@gmail.com on 12 Jun 2013 at 8:28

GoogleCodeExporter commented 8 years ago
Related to issue 81 and issue 297.

Original comment by hakan.d...@gmail.com on 12 Jun 2013 at 8:30

GoogleCodeExporter commented 8 years ago
Note: new robust-oneway pattern from issue 343 uses byte[]/binary payloads.

Original comment by hakan.d...@gmail.com on 17 Jun 2013 at 2:06