You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Bengt Rodehav (JIRA)" <ji...@apache.org> on 2011/08/18 12:03:27 UTC
[jira] [Updated] (CAMEL-4348) Add String->TimeZone converter so
that time zone can be specified for camel-quartz
[ https://issues.apache.org/jira/browse/CAMEL-4348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bengt Rodehav updated CAMEL-4348:
---------------------------------
Attachment: String2TimeZoneConverter.java
String to TimeZone converter.
> 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
> Priority: Minor
> 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