THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- marshal = currently not supported by Smmoks
- unmarshal = from stream to XML (can be used when reading EDI files)
...
setSmooksConfig(configfile)
= a fully smooks Smmoks configuration filesetMappingModel(modelfile)
= just the mapping model xml file and Camel will use a default smooks Smmoks configuration
To use the data format simply instantiate an instance, invoke on of the appropriate setter set the configuration (above) and invoke the unmarshl unmarshal operation in the route builder:
...
And you can also provide the full smooks Smmoks configuration file where you can configure Smooks Smmoks as you want, in case the default configuration isn't useful:
Code Block | ||||
---|---|---|---|---|
| ||||
DataFormat edi = new EDIDataFormat();
edi.setSmooksConfig("my-smooks-config.xml");
...
from("file://edi/in").unmarshal(edi).to("jms:queue:edi");
|
...