camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: how to call java method using quartz2
Date Fri, 25 Oct 2013 11:10:04 GMT
Hi

Read the Camel documentation about using beans

http://camel.apache.org/bean-integration.html
http://camel.apache.org/bean.html
http://camel.apache.org/bean-binding.html


On Fri, Oct 25, 2013 at 12:48 PM, ishwar <panjariishwar@gmail.com> wrote:
> hi .actually i need to call java method on future specific time. and i am
> using cron pattern for creating the time but i am not getting how to call
> the my java method
>
> This is my simple code which invoke the method
>
>         CamelContext context = new DefaultCamelContext();
>                 context.addRoutes(new RouteBuilder() {
>                     public void configure() {
>                         from("quartz2://myGroup/myfirstrigger?cron=0/2+*+*+*+*+?").to(new
> Schedule().show());
>
>                     }
>                 });
>                 context.start();
>
>    the show() method available inside the schedule class so how to call. i
> do not have any idea.
>
>
>
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/how-to-call-java-method-using-quartz2-tp5742192.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message