Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added a simple Spring example for camel-jdbc

...

Wiki Markup
{snippet:id=route|lang=java|url=activemq/camel/trunk/components/camel-jdbc/src/test/java/org/apache/camel/component/jdbc/JdbcRouteTest.java}

Or you can create a datasource in Spring like this:

Wiki Markup
{snippet:id=example|lang=java|url=activemq/camel/trunk/components/camel-jdbc/src/test/resources/org/apache/camel/component/jdbc/camelContext.xml}

And then we create the endpoint and sends the exchange containing the SQL query to execute in the in body. The result is returned in the out body.

...