2 Replies Latest reply on Jul 30, 2013 10:16 AM by hisao.furuichi

    Need feature to invoke a specific method in Quartz Gateway

    hisao.furuichi

      Hello.

       

      I have a feature request about quartz gateway.

      To create a message, I want to invoke a specific class's method whenever Quartz gateway sends a message. With JBoss-esb, I can write following sample code. org.jboss.soa.esb.sample.quickstart.camelesbschedule.SimpleBean.getOutput() will return String object as message.

       

      <camel-gateway name="gateway1">
      <from uri="esbschedule:5000:class:org.jboss.soa.esb.samples.quickstart.camelesbschedule.SimpleBean?method=getOutput"/>
      </camel-gateway>
      

       

      With SwitchYard, I can not specify any method in a <quartz> tag. Here is what I got so far.

       

      <service name="gateway1" promote="gateway1s">
      <quartz:binding.quartz xmlns:quartz="urn:switchyard-component-camel-quartz:config:1.0">
      <quartz:name>Every5SecondJob</quartz:name>
      <quartz:cron>0/5 * * * * ?</quartz:cron>
      </quartz:binding.quartz>
      </service>
      

       

      By checking http://camel.apache.org/quartz, it looks like camel quartz component doesn't support it.

      Please consider to support this feature by SwitchYard. I opend a ticket(SWITCHYARD-1624) for this request.

       

      Regards