0
votes

I have created one cron job from("quartz://myscheduler?cron=20+++++?").bean(LdapBean.class, "start"); (interval time=20s)

Now from "start" method I want to make call to ldap server to fetch data of specific user. from("direct:start").to("ldap:ldapserver?base=ou=group,dc=dc1,dc=dc2").to("bean:ldapBean");

This was my previous call without cron job.

How can I do that without creating multiple routes. (route is created each time the method calls). Also I am getting TestDao null in method

public void process(Exchange exchange) {}

1

1 Answers

0
votes

Why cant you just do

from quartz
  to ldap
  bean