Re: camel quartz2 scheduler external quartz.properties file

2017-01-23 Thread Claus Ibsen
Hi Oh btw I forgot that camel-quartz2-starter has Spring Boot auto configuration which allows to configure the component options in the application.properites / yml file and as well from ENV overrides that SB support. So you can maybe configure it from ENV with { "name": "camel.compone

Re: camel quartz2 scheduler external quartz.properties file

2017-01-23 Thread Claus Ibsen
Hi You may need to name the bean quartz2 or what the name you use in your Camel routes, eg @Bean(nane = "quartz2") Spring Boot will use the method name as the component name by default, so you can also name it @Bean QuartzComponent quartz2() { ... } but that would be a bit odd to do, so its l

Re: camel quartz2 scheduler external quartz.properties file

2017-01-23 Thread Deepak kumar
Hi Claus, I tried by making a QuartzComponent using java config. But this one is not getting detected in my camel-quartz component. @Bean //@Produce(uri="quartz2://myscheduler2?cron=0+0/2+0+?+*+MON-SAT") public QuartzComponent quartzComponent(){ System.out.

Re: camel quartz2 scheduler external quartz.properties file

2017-01-23 Thread Claus Ibsen
You cannot use JVM or ENV parameters, but you can configure the propertiesFile with either file: or classpath: as prefix to load it from either of those. Its using Camel's ResourceLoader (Helper) so we could consider adding support for specifying an ENV or JVM prefix so its using that, eg propert

Re: Camel - Quartz2

2016-02-18 Thread John D. Ament
Did you receive an error when you did this? What container are you deploying to? On Thu, Feb 18, 2016 at 12:54 PM dpravin wrote: > I am using Quartz2 component for scheduling a route in blueprint. I want to > to inject a datasource to Quartz bean. I tried with following two different > options,

Re: Camel quartz2 trigger.repeatInterval not working

2015-09-03 Thread Claus Ibsen
You have repeat count to 1 which means it should only trigger 1 time. Also try use latest release in case it works there On Mon, Aug 31, 2015 at 11:43 AM, snehal_jagtap wrote: > Hello, > I have been using 'quartz2' for polling and try to poll message after every > 40 seconds. > > however files

Re: Camel Quartz2 Clustering fails due to durable jobs, has anyone got

2014-10-31 Thread Surjit Sen
Hi Claus, Even though the JIRA ticket CAMEL-7280 mentions that the issue has been resolved, if I execute QuartzCronRouteDurableJobTest twice in succession with Oracle DB as JobStore, I get the following exception (on the 2nd run): org.apache.camel.FailedToCreateRouteException: Failed to create rou

Re: camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread sandp
Thank Claus that helped. I'm trying to set a property below for Scheduled Delivery just before delivering to HornetQ *_JBM_SCHED_DELIVERY* I tried setting the property as a Header and Property on the Exchange Message neither worked. Is there is a camel option that can recognize a schedule? --

Re: camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread Claus Ibsen
The JMS consumer is event driven so it reacts when a new message is on the queue. It only makes sense to use a CRON if you want to use that to control when the route is active and when its not active. For that see about route policy http://camel.apache.org/routepolicy On Wed, Oct 1, 2014 at 9:46

Re: camel-quartz2 2.14.0 as a polling consumer for a JMS Queue

2014-10-02 Thread Charles Moulliard
Hi, You can't mix parameters of the JMS endpoint with the Quartz endpoint like you did. To be able to define when you would like to poll a queue, you should use the quartz2 endpoint with the enrich poll EIP partner from("quartz2:...") .pollEnrich("jms:queue:...") .to("") Regards, On Wed, Oct 1,

Re: Camel Quartz2 Clustering fails due to durable jobs, has anyone got

2014-03-09 Thread Claus Ibsen
Hi Can you try set the job option as job.durability=true in the uri. That may work as that is the setter name in the job impl class. On Mon, Oct 7, 2013 at 2:03 PM, Mark Richards - News Systems and Architecture wrote: > Hi, > > I'm using Camel 2.12.1, Quartz 2.2.0, Blueprint and Mysql 5.5 in

Re: Camel Quartz2 Clustering fails due to durable jobs, has anyone got

2014-03-08 Thread Claus Ibsen
Hi I logged a ticket https://issues.apache.org/jira/browse/CAMEL-7280 On Sat, Mar 1, 2014 at 10:33 AM, Claus Ibsen wrote: > Hi > > Yeah feel free to log a JIRA ticket and we love contributions, so > patches is welcome > http://camel.apache.org/contributing > > On Fri, Feb 28, 2014 at 2:43 PM, fh

Re: Camel Quartz2 Clustering fails due to durable jobs, has anyone got

2014-03-01 Thread Claus Ibsen
Hi Yeah feel free to log a JIRA ticket and we love contributions, so patches is welcome http://camel.apache.org/contributing On Fri, Feb 28, 2014 at 2:43 PM, fherpertz wrote: > Hi, > > I have a similiar problem and I tried to track it down. > > After some time of work and testing several possibi

Re: Camel Quartz2 Clustering fails due to durable jobs, has anyone got

2014-02-28 Thread fherpertz
Hi, I have a similiar problem and I tried to track it down. After some time of work and testing several possibilities I took a look at the Quartz 2.2.0 sources and at the migration guide from quartz to quartz2. On the quartz homepage in the Migration guide

Re: Camel Quartz2 Clustering fails due to durable jobs, has anyone got

2013-11-08 Thread donzur
I am running into a similar problem. I am trying to use the Quartz2 component in Camel to implement a clustered timer so that I can support HA timer routes across multiple servers. When i try to start the route against a clean quartz database, I can connect and the timer starts polling. If I sto