[ 
https://issues.apache.org/jira/browse/CAMEL-7030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13836949#comment-13836949
 ] 

Claus Ibsen commented on CAMEL-7030:
------------------------------------

The route policy was in fact not working with quartz itself, and if end users 
enabled JMX they can see exceptions like
{code}
2013-12-02 22:35:51,516 [main           ] ERROR QuartzScheduler                
- Error while notifying SchedulerListener of scheduled job.  
Triger=triggerGroup-testRoute.trigger-STOP-testRoute
java.lang.RuntimeException: javax.management.openmbean.OpenDataException: 
Argument value of wrong type for item nextFireTime: value Mon Dec 02 22:35:53 
CET 2013, type javax.management.openmbean.SimpleType(name=java.util.Date)
        at 
org.quartz.core.jmx.TriggerSupport.toCompositeData(TriggerSupport.java:76)
        at 
org.quartz.core.QuartzSchedulerMBeanImpl.jobScheduled(QuartzSchedulerMBeanImpl.java:352)
        at 
org.quartz.core.QuartzScheduler.notifySchedulerListenersSchduled(QuartzScheduler.java:2034)
        at org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:825)
        at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:243)
        at 
org.apache.camel.routepolicy.quartz.ScheduledRoutePolicy.scheduleRoute(ScheduledRoutePolicy.java:102)
        at 
org.apache.camel.routepolicy.quartz.SimpleScheduledRoutePolicy.doOnInit(SimpleScheduledRoutePolicy.java:75)
        at 
org.apache.camel.routepolicy.quartz.SimpleScheduledRoutePolicy.onInit(SimpleScheduledRoutePolicy.java:44)
        at 
org.apache.camel.impl.DefaultRouteContext.commit(DefaultRouteContext.java:202)
        at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:914)
        at 
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:175)
        at 
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:776)
        at 
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1928)
        at 
org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1684)
        at 
org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1558)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
        at 
org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1526)
{code}

> camel-quartz - Register quartz scheduler in JMX by default
> ----------------------------------------------------------
>
>                 Key: CAMEL-7030
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7030
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-quartz, camel-quartz2
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>              Labels: jmx
>             Fix For: 2.13.0
>
>
> If using camel quartz component, you may just configure it without the big 
> .properties file of quartz.
> Though its harder to enable the scheduler to be enlist in JMX, so you at 
> runtime can see the state of the scheduler and manage it etc.
> We should enlist the scheduler in JMX out of the box, unless explicit 
> disabled.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to