Chapter 1. Meeting Camel
Listing 1.1. Routing files from one folder to another in plain Java
Listing 1.2. Routing files from one folder to another with Apache Camel
Listing 1.3. The Maven POM required to use Camel’s core library
Listing 1.4. Routing files from one folder to another with Apache Camel
Chapter 2. Routing with Camel
Listing 2.1. Polling for FTP messages and sending them to the incomingOrders queue
Listing 2.2. A Spring configuration that produces the same results as listing 2.1
Listing 2.3. A Spring DSL example that produces the same results as listing 2.1
Listing 2.4. A complete content-based router
Chapter 3. Transforming data with Camel
Listing 3.1. Using a Processor to translate from a custom format to CSV format
Listing 3.2. Using a bean to translate from a custom format to CSV format
Listing 3.3. Using pollEnrich to merge additional data with an existing message
Listing 3.4. Using XStream to transform a message into XML
Listing 3.5. Annotating a bean with JAXB so it can be transformed to and from XML
Listing 3.6. Using JAXB to serialize objects to and from XML
Listing 3.7. Model object annotated for CSV transformation
Listing 3.8. Using Bindy to transform a model object to CSV format
Listing 3.9. An HTTP service that returns order summaries rendered in JSON format
Listing 3.10. Configuring the CSV data format
Listing 3.11. Developing a custom data format that can reverse strings
Listing 3.12. A custom type converter to convert from byte[] to PurchaseOrder type