Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: polished

...

  • 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 file
  • setMappingModel(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
java
java
DataFormat edi = new EDIDataFormat();
edi.setSmooksConfig("my-smooks-config.xml");
...
from("file://edi/in").unmarshal(edi).to("jms:queue:edi");

...