[ 
https://issues.apache.org/jira/browse/CAMEL-4348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087013#comment-13087013
 ] 

Bengt Rodehav commented on CAMEL-4348:
--------------------------------------

Perfect - looking forward to 2.9.0!

> Add String->TimeZone converter so that time zone can be specified for 
> camel-quartz
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-4348
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4348
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.8.0
>            Reporter: Bengt Rodehav
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.0
>
>         Attachments: String2TimeZoneConverter.java
>
>
> It is possible to specify a time zone for Quartz, however, in order for that 
> to work Camel needs a String to TimeZone type converter since Quartz requires 
> a TimeZone.
> Attached is a patch containing a type converter that works. By setting the 
> type converter explicitly on the context like this,
> {quote}
> context.getTypeConverterRegistry().addTypeConverter(TimeZone.class, 
> String.class, new String2TimeZoneConverter());
> {quote}
> it is possible to create an endpoint URI looking like this:
> {quote}
> quartz://groupName/timerName?cron=<cronExpression>&trigger.timeZone=Europe/Stockholm
> {quote}
> However, it would be really useful if this type converter could be included 
> in camel-core. This has been discussed on the camel user list:
> http://camel.465427.n5.nabble.com/How-to-specify-a-time-zone-for-camel-quartz-td4700077.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to