|
The String Data Format is a textual based format that supports encoding. Options
MarshalIn this example we marshal the file content to String object in UTF-8 encoding.
from("file://data.csv").marshal().string("UTF-8").to("jms://myqueue");
UnmarshalIn this example we unmarshal the payload from the JMS queue to a String object using UTF-8 encoding, before its processed by the newOrder processor.
from("jms://queue/order").unmarshal().string("UTF-8").processRef("newOrder");
DependenciesThis data format is provided in camel-core so no additional dependencies is needed. |