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:01:27 UTC

[jira] [Created] (CAMEL-4348) Add String->TimeZone converter so that time zone can be specified for camel-quartz

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


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

        

[jira] [Commented] (CAMEL-4348) Add String->TimeZone converter so that time zone can be specified for camel-quartz

Posted by "Bengt Rodehav (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Updated] (CAMEL-4348) Add String->TimeZone converter so that time zone can be specified for camel-quartz

Posted by "Bengt Rodehav (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Assigned] (CAMEL-4348) Add String->TimeZone converter so that time zone can be specified for camel-quartz

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-4348:
----------------------------------

    Assignee: Claus Ibsen

> 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
>         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

        

[jira] [Resolved] (CAMEL-4348) Add String->TimeZone converter so that time zone can be specified for camel-quartz

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-4348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-4348.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.9.0

Thanks for the patch. I added a String to TimeZone converter in the core.

> 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

        

[jira] [Commented] (CAMEL-4348) Add String->TimeZone converter so that time zone can be specified for camel-quartz

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-4348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087074#comment-13087074 ] 

Claus Ibsen commented on CAMEL-4348:
------------------------------------

Backported to 2.8.1 as well.

> 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

        

[jira] [Updated] (CAMEL-4348) Add String->TimeZone converter so that time zone can be specified for camel-quartz

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ 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