THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
In this example we marshal the file content to base64 object.
Code Block |
---|
from("file://data.bin").marshal().base64().to("jms://myqueue");
|
...
In this example we unmarshal the payload from the JMS queue to a byte[] object, before its processed by the newOrder processor.
Code Block |
---|
from("jms://queue/order").unmarshal().base64().processRef("newOrder");
|
...
If you use Maven you can just add the following to your pom.xml, substituting the version number for the latest & greatest release (see the download page for the latest versions).:
Code Block | ||||
---|---|---|---|---|
| ||||
<dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-base64</artifactId> <version>2<version>x.11x.0<x</version> <!-- use the same version as your Camel core version --> </dependency> |