Following main class
Main main = new Main();
main.addRouteBuilder( new GetAccountStatusBulk() );
main.getOrCreateCamelContext().getComponent("sql",
SqlComponent.class).setDataSource(setupDataSource());
main.run(args);
Following change in roue
.to("sql:select status from subscriber where mobilenumber in
(:#in:mobilenumbers)")
Error :
Exception in thread "main" org.apache.camel.FailedToCreateRouteException:
Failed to create route route1 at:
Caused by: java.lang.IllegalArgumentException: DataSource must be configured
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-sql-SQL-IN-Query-issue-2-17-1-tp5783264p5783303.html
Sent from the Camel - Users mailing list archive at Nabble.com.