Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you're ambitions, you can write your own XSD (XML Schema) for files that look like this. If not, you can download mine. In any case, save it to src/main/xsd.

Generating JAXB Beans

Now we need to Down the road we'll want to deal with the XML as Java POJOs. We'll take a moment now to set up those XML binding POJOs. So we'll update the Maven POM to generate JAXB beans from the XSD file.

...

That should do it (it automatically looks for XML Schemas in src/main/xsd to generate beans for). Run mvn install and it should emit the beans into target/generated-sources/jaxb.

Initial Work on Customer 1 Input (XML over FTP)

Create an XSLT template

Create a unit test

Initial Work on Customer 2 Input (CSV over HTTP)

Create a CSV-handling POJO

Create a unit test

Initial Work on Customer 3 Input (Excel over e-mail)

Create an Excel-handling POJO

Create a unit test

Put this all together into Camel routes for the Customer Input

Create a unit test for the Customer Input Routes