camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nestor Urquiza <>
Subject Re: Configure Camel to consume externally configured quartz jobs
Date Tue, 22 May 2012 21:38:27 GMT
Resolving this demanded interacting with Quartz directly (so far working). I
have Spring starting the scheduler at application startup and some Services
allowing to reschedule jobs from Quartz API. Then the Quartz jobs just call
a Camel trigger job that sends a message to any dynamically passed endpoint:

public class CamelTriggerJob implements StatefulJob {
    public void execute(JobExecutionContext context) throws
JobExecutionException {
        CamelContext camelContext = (CamelContext)
        ProducerTemplate template = camelContext.createProducerTemplate();
        JobDataMap dataMap = context.getJobDetail().getJobDataMap();
        String endPoint = dataMap.getString("endPoint");
        template.sendBody(endPoint, "Activation from" +

Criticism to the solution is greatly appreciated of course.

Thanks for your help guys! Awesome support. BTW I will be writting a
beginner tutorial after my riding soon.



View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message