THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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.
...