You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by gmagniez <ga...@steria.com> on 2009/02/27 14:48:10 UTC

Camel-quartz

Hi,
The camel-quartz component replace the character "/" by " ", but how can i
use the "/" in the cron expression like from trigering something every five
minutes: 0/5?
I've found another thread about that problem but it was not resolved.
http://www.nabble.com/camel-quartz-cron-trigger-endpoint-uri-syntax-td13923344.html#a13923344

Best regards
-- 
View this message in context: http://www.nabble.com/Camel-quartz-tp22246214p22246214.html
Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.


Re: Camel-quartz

Posted by Claus Ibsen <cl...@gmail.com>.
On Sat, Feb 28, 2009 at 5:06 PM, Hadrian Zbarcea <hz...@gmail.com> wrote:
> I think using '+' for a space is a common convention and better than a '_'.
Okay lets support them both, using _ is much easier to read instead of +.
Try a complex cron with - and using + as separators is not easy to read.

> $0.02
> Hadrian
>
> On Feb 28, 2009, at 10:29 AM, Claus Ibsen wrote:
>
>> Hi
>>
>> The ticket:
>> https://issues.apache.org/activemq/browse/CAMEL-1407
>>
>> Implemented in Camel 2.0
>>
>> On Sat, Feb 28, 2009 at 4:06 PM, Claus Ibsen <cl...@gmail.com>
>> wrote:
>>>
>>> Hi
>>>
>>> I have created the ticket and is currently improving the quartz
>>> component.
>>> Yeah its a real bummer with the / as cron separators. I have improved
>>> it to be a URI parameter instead, only requiring to use _ as space.
>>>
>>> eg:
>>> "quartz://myGroup/myTimerName?cron=0_0/5_12-18_?_*_MON-FRI"
>>> "quartz://myGroup/myTimerName?cron=0_0_*_*_*_?"
>>>
>>> And we can use ? instead of having to use $. So its only _ as spaces.
>>>
>>>
>>>
>>> On Fri, Feb 27, 2009 at 3:58 PM, Claus Ibsen <cl...@gmail.com>
>>> wrote:
>>>>
>>>> On Fri, Feb 27, 2009 at 2:48 PM, gmagniez <ga...@steria.com>
>>>> wrote:
>>>>>
>>>>> Hi,
>>>>> The camel-quartz component replace the character "/" by " ", but how
>>>>> can i
>>>>> use the "/" in the cron expression like from trigering something every
>>>>> five
>>>>> minutes: 0/5?
>>>>> I've found another thread about that problem but it was not resolved.
>>>>>
>>>>> http://www.nabble.com/camel-quartz-cron-trigger-endpoint-uri-syntax-td13923344.html#a13923344
>>>>
>>>> Hi
>>>>
>>>> Yeah I can not see the reason for this replacement unless to divide
>>>> into sub paths, for each individual cron element.
>>>>
>>>> Do you mind creating a ticket, then we can fix it so you can use / in
>>>> the URI. The only one that is reasonable to replace is the ? with $
>>>> otherwise, even thought it may still be valid URI using it.
>>>> http://camel.apache.org/support.html
>>>>
>>>>>
>>>>> Best regards
>>>>> --
>>>>> View this message in context:
>>>>> http://www.nabble.com/Camel-quartz-tp22246214p22246214.html
>>>>> Sent from the Camel - Users (activemq) mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Claus Ibsen
>>>> Apache Camel Committer
>>>>
>>>> Open Source Integration: http://fusesource.com
>>>> Blog: http://davsclaus.blogspot.com/
>>>>
>>>
>>>
>>>
>>> --
>>> Claus Ibsen
>>> Apache Camel Committer
>>>
>>> Open Source Integration: http://fusesource.com
>>> Blog: http://davsclaus.blogspot.com/
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Re: Camel-quartz

Posted by Hadrian Zbarcea <hz...@gmail.com>.
I think using '+' for a space is a common convention and better than a  
'_'.
$0.02
Hadrian

On Feb 28, 2009, at 10:29 AM, Claus Ibsen wrote:

> Hi
>
> The ticket:
> https://issues.apache.org/activemq/browse/CAMEL-1407
>
> Implemented in Camel 2.0
>
> On Sat, Feb 28, 2009 at 4:06 PM, Claus Ibsen <cl...@gmail.com>  
> wrote:
>> Hi
>>
>> I have created the ticket and is currently improving the quartz  
>> component.
>> Yeah its a real bummer with the / as cron separators. I have improved
>> it to be a URI parameter instead, only requiring to use _ as space.
>>
>> eg:
>> "quartz://myGroup/myTimerName?cron=0_0/5_12-18_?_*_MON-FRI"
>> "quartz://myGroup/myTimerName?cron=0_0_*_*_*_?"
>>
>> And we can use ? instead of having to use $. So its only _ as spaces.
>>
>>
>>
>> On Fri, Feb 27, 2009 at 3:58 PM, Claus Ibsen  
>> <cl...@gmail.com> wrote:
>>> On Fri, Feb 27, 2009 at 2:48 PM, gmagniez <gabriel.magniez@steria.com 
>>> > wrote:
>>>>
>>>> Hi,
>>>> The camel-quartz component replace the character "/" by " ", but  
>>>> how can i
>>>> use the "/" in the cron expression like from trigering something  
>>>> every five
>>>> minutes: 0/5?
>>>> I've found another thread about that problem but it was not  
>>>> resolved.
>>>> http://www.nabble.com/camel-quartz-cron-trigger-endpoint-uri-syntax-td13923344.html#a13923344
>>> Hi
>>>
>>> Yeah I can not see the reason for this replacement unless to divide
>>> into sub paths, for each individual cron element.
>>>
>>> Do you mind creating a ticket, then we can fix it so you can use /  
>>> in
>>> the URI. The only one that is reasonable to replace is the ? with $
>>> otherwise, even thought it may still be valid URI using it.
>>> http://camel.apache.org/support.html
>>>
>>>>
>>>> Best regards
>>>> --
>>>> View this message in context: http://www.nabble.com/Camel-quartz-tp22246214p22246214.html
>>>> Sent from the Camel - Users (activemq) mailing list archive at  
>>>> Nabble.com.
>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Claus Ibsen
>>> Apache Camel Committer
>>>
>>> Open Source Integration: http://fusesource.com
>>> Blog: http://davsclaus.blogspot.com/
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>>
>
>
>
> -- 
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/


Re: Camel-quartz

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

The ticket:
https://issues.apache.org/activemq/browse/CAMEL-1407

Implemented in Camel 2.0

On Sat, Feb 28, 2009 at 4:06 PM, Claus Ibsen <cl...@gmail.com> wrote:
> Hi
>
> I have created the ticket and is currently improving the quartz component.
> Yeah its a real bummer with the / as cron separators. I have improved
> it to be a URI parameter instead, only requiring to use _ as space.
>
> eg:
> "quartz://myGroup/myTimerName?cron=0_0/5_12-18_?_*_MON-FRI"
> "quartz://myGroup/myTimerName?cron=0_0_*_*_*_?"
>
> And we can use ? instead of having to use $. So its only _ as spaces.
>
>
>
> On Fri, Feb 27, 2009 at 3:58 PM, Claus Ibsen <cl...@gmail.com> wrote:
>> On Fri, Feb 27, 2009 at 2:48 PM, gmagniez <ga...@steria.com> wrote:
>>>
>>> Hi,
>>> The camel-quartz component replace the character "/" by " ", but how can i
>>> use the "/" in the cron expression like from trigering something every five
>>> minutes: 0/5?
>>> I've found another thread about that problem but it was not resolved.
>>> http://www.nabble.com/camel-quartz-cron-trigger-endpoint-uri-syntax-td13923344.html#a13923344
>> Hi
>>
>> Yeah I can not see the reason for this replacement unless to divide
>> into sub paths, for each individual cron element.
>>
>> Do you mind creating a ticket, then we can fix it so you can use / in
>> the URI. The only one that is reasonable to replace is the ? with $
>> otherwise, even thought it may still be valid URI using it.
>> http://camel.apache.org/support.html
>>
>>>
>>> Best regards
>>> --
>>> View this message in context: http://www.nabble.com/Camel-quartz-tp22246214p22246214.html
>>> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Re: Camel-quartz

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I have created the ticket and is currently improving the quartz component.
Yeah its a real bummer with the / as cron separators. I have improved
it to be a URI parameter instead, only requiring to use _ as space.

eg:
"quartz://myGroup/myTimerName?cron=0_0/5_12-18_?_*_MON-FRI"
"quartz://myGroup/myTimerName?cron=0_0_*_*_*_?"

And we can use ? instead of having to use $. So its only _ as spaces.



On Fri, Feb 27, 2009 at 3:58 PM, Claus Ibsen <cl...@gmail.com> wrote:
> On Fri, Feb 27, 2009 at 2:48 PM, gmagniez <ga...@steria.com> wrote:
>>
>> Hi,
>> The camel-quartz component replace the character "/" by " ", but how can i
>> use the "/" in the cron expression like from trigering something every five
>> minutes: 0/5?
>> I've found another thread about that problem but it was not resolved.
>> http://www.nabble.com/camel-quartz-cron-trigger-endpoint-uri-syntax-td13923344.html#a13923344
> Hi
>
> Yeah I can not see the reason for this replacement unless to divide
> into sub paths, for each individual cron element.
>
> Do you mind creating a ticket, then we can fix it so you can use / in
> the URI. The only one that is reasonable to replace is the ? with $
> otherwise, even thought it may still be valid URI using it.
> http://camel.apache.org/support.html
>
>>
>> Best regards
>> --
>> View this message in context: http://www.nabble.com/Camel-quartz-tp22246214p22246214.html
>> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/

Re: Camel-quartz

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Feb 27, 2009 at 2:48 PM, gmagniez <ga...@steria.com> wrote:
>
> Hi,
> The camel-quartz component replace the character "/" by " ", but how can i
> use the "/" in the cron expression like from trigering something every five
> minutes: 0/5?
> I've found another thread about that problem but it was not resolved.
> http://www.nabble.com/camel-quartz-cron-trigger-endpoint-uri-syntax-td13923344.html#a13923344
Hi

Yeah I can not see the reason for this replacement unless to divide
into sub paths, for each individual cron element.

Do you mind creating a ticket, then we can fix it so you can use / in
the URI. The only one that is reasonable to replace is the ? with $
otherwise, even thought it may still be valid URI using it.
http://camel.apache.org/support.html

>
> Best regards
> --
> View this message in context: http://www.nabble.com/Camel-quartz-tp22246214p22246214.html
> Sent from the Camel - Users (activemq) mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/