camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-4348) Add String->TimeZone converter so that time zone can be specified for camel-quartz
Date Thu, 18 Aug 2011 15:58:27 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-4348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-4348:
-------------------------------

    Fix Version/s: 2.8.1

> 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.8.1, 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

        

Mime
View raw message