Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
SQL ExampleAvailable as of Camel 2.11 This example is located in the If you use maven then you can easily compile and install the example from the command line: AboutThis example shows how to exchange data using a shared database table. The example has two Camel routes. The first route insert new data into the table, triggered by a timer to run every 5th second. ImplementationIn the And then in the same file we setup our Camel application. At first we have a orderBean that we use in the routes to generate new orders and process orders as well. Notice how we have externalized the SQL queries, and use Camels property placeholder to refer to the Notice in the SQL queries below we use named parameters which must start with prefix ':#' and then the name, eg :#amount. Then Camel will bind that parameter with the given name, from the Running the exampleThis example can be run from the command line Press ctrl + c to stop the example. See Also |