Re: camel+quartz schedulers

2012-07-20 Thread Sudhakar.kaithepalli
can you tell me how to stop camel routes please. Its urgent to me. - Sudhakar Kaithepalli -- View this message in context: http://camel.465427.n5.nabble.com/camel-quartz-schedulers-tp5715992p5716245.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel+quartz schedulers

2012-07-20 Thread Sudhakar.kaithepalli
Hi Thanks for your quick response... and 1.) can u tell me how to stop camel route after it hit the FTP server. one more thing is 2.) how can i find out the size of files in FTP server? Thanks and regards.. - Sudhakar Kaithepalli -- View this message in

Re: camel+quartz schedulers

2012-07-20 Thread Sudhakar.kaithepalli
SimpleTrigger means, my camel route like this... from(quartz://schedulerJob?trigger.repeatInterval=6trigger.repeatCount=+SimpleTrigger.REPEAT_INDEFINITELY).to(some bean method ).end() This is wht my camel route using quartz scheduler - Sudhakar Kaithepalli -- View this message in

Re: camel+quartz schedulers

2012-07-19 Thread Sudhakar.kaithepalli
Hi to all . I am using Camel and Quartz to schedule a job and in Quartz also i used SimpleTrigger. But the problem here is the trigger fires while we start the server itself, we don't want like that. It should fire on configured time only not at initial time. How to configure

Re: camel+quartz schedulers

2012-07-19 Thread Magnus Palmér
Unless you are on a very old version the simple trigger will not fire when starting the route (the fireNow property) However if your repeat interval is small it might look like that. What I normally use is the option of delaying the start of the Quartz scheduler itself. Look for Starting the

Re: camel+quartz schedulers

2012-07-16 Thread Sudhakar.kaithepalli
Hi... How to get file size, which is there in ftp server using camel Exchange? - Sudhakar Kaithepalli -- View this message in context: http://camel.465427.n5.nabble.com/camel-quartz-schedulers-tp5715992p5716063.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel+quartz schedulers

2012-07-16 Thread Pontus Ullgren
Hello, The file size is available in the message headers (CamelFileLength). See http://camel.apache.org/file2.html // Pontus On Mon, Jul 16, 2012 at 8:25 AM, Sudhakar.kaithepalli sudhakar.kaithepa...@gmail.com wrote: Hi... How to get file size, which is there in ftp server using camel

Re: camel+quartz schedulers

2012-07-14 Thread Sudhakar.kaithepalli
Hi Good Morning... Thanks for ur response Pontus... But i don't want to interact with Active-MQ in between camel route and FTP server. And on more thing How can i get no. of files in FTP server through camel route? plz tell me its very urgent to me.. ThanksRegards.. Sudhakar

Re: camel+quartz schedulers

2012-07-13 Thread Pontus Ullgren
Hi, For the frequency I belive you can use the Throttler pattern. http://camel.apache.org/throttler.html For volume you can write a RoutePolicy to suspend/resume the routes when certain condtitions met. See http://camel.apache.org/routepolicy.html and

Re: camel+quartz schedulers

2012-07-13 Thread Sudhakar.kaithepalli
Hi Pontus ... ThankQ for ur reply Pontus .. - Sudhakar Kaithepalli -- View this message in context: http://camel.465427.n5.nabble.com/camel-quartz-schedulers-tp5715992p5715999.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel+quartz schedulers

2012-07-13 Thread Sudhakar.kaithepalli
HI. Actually my requirement is i've a sheduler table in DB.in that end-user store frequency as 10 files, every time we need to check with FTP during camel route if FTP contain =10 files then only we can start actual task.. This is my requirement.. Thanks and

Re: camel+quartz schedulers

2012-07-13 Thread Pontus Ullgren
Ok then I misunderstood your question. In your case a PollingConsumerPollStrategy [1] might be more suitable. But I guess it could also be achieved by using a route policy that starts the FTP route once the correct number of files are present. [1] http://camel.apache.org/polling-consumer.html