Help apache camel jdbc + active

2013-12-16 Thread RJILI Youssef
I'm new in apache camel and i have a problem about the filling of the activemq. I want to get the values from DB and filled it into activemq. My activemq is started: My code : private void fillActiveMq() throws Exception{ JndiRegistry registry = new JndiRegistry(new JndiContext()); CamelContext

Re: Help apache camel jdbc + active

2013-12-16 Thread Richard Kettelerij
As mentioned in the Camel docs for the JDBC component: This component can only be used to define producer endpoints, which means that you cannot use the JDBC component in a from() statement. So if you want to poll message from a database you shouldn't use the JDBC component but instead use either

Re: Help apache camel jdbc + active

2013-12-16 Thread kraythe .
As said above. Use quartz or an AMQ event to trigger it. *Robert Simmons Jr. MSc. - Lead Java Architect @ EA* *Author of: Hardcore Java (2003) and Maintainable Java (2012)* *LinkedIn: **http://www.linkedin.com/pub/robert-simmons/40/852/a39 http://www.linkedin.com/pub/robert-simmons/40/852/a39*