Inside the camel-context.xml I have a:

<lang:jruby id="EpiReplicaQuery"
              script-interfaces="org.apache.camel.Processor"
              script-source="classpath:ruby/epi_replica_query.rb">
    <lang:property name="dataSource" ref="dataSource" />
  </lang:jruby>

element.

How can I insert it in a route?

The following notation doesn't work:

        
from("timer://epi_replica_timer?fixedRate=true&delay=5000&period=10000").
            id("epi_replica").
            beanRef("epiReplicaQuery");

with error: No bean could be found in the registry for: epiReplicaQuery

Which is the right way?

Thank you,

Francesco

Reply via email to