|
SQL has been edited by Claus Ibsen (Sep 20, 2008). Change summary: CAMEL-907 SQLThe SQL support is added by JoSQL Camel supports SQL To add an SQL _expression_ to your routing rules its usually easiest to import the SqlBuilder import static org.apache.camel.builder.sql.SqlBuilder.*; ... from("queue:foo").setBody(sql("select * from MyType")).to("queue:bar")
DependenciesTo use SQL in your camel routes you need to add the a dependency on camel-josql which implements the SQL language. If you use maven you could just add the following to your pom.xml, substituting the version number for the latest & greatest release (see the download page for the latest versions). <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-josql</artifactId> <version>1.4.0</version> </dependency> |
Unsubscribe or edit your notifications preferences
