You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Daniel Gredler (JIRA)" <ji...@apache.org> on 2012/10/22 20:58:13 UTC

[jira] [Created] (CAMEL-5734) Cold restart via JMX

Daniel Gredler created CAMEL-5734:
-------------------------------------

             Summary: Cold restart via JMX
                 Key: CAMEL-5734
                 URL: https://issues.apache.org/jira/browse/CAMEL-5734
             Project: Camel
          Issue Type: New Feature
          Components: jmx
    Affects Versions: 2.10.1
            Reporter: Daniel Gredler
            Priority: Minor
         Attachments: jmx-restart.patch

Camel supports both warm and cold restarts for a couple of years now (see CAMEL-3012). However, cold restart is not possible via JMX because calling stop() shuts down the JMX service, and it becomes impossible to call start().

I propose to add support for cold restarts via JMX by adding a restart() method to ManagedCamelContextMBean and ManagedCamelContext, which internally just calls stop() and then start().

I'm attaching a patch with the proposed implementation and a test case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Assigned] (CAMEL-5734) Cold restart via JMX

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

Willem Jiang reassigned CAMEL-5734:
-----------------------------------

    Assignee: Willem Jiang
    
> Cold restart via JMX
> --------------------
>
>                 Key: CAMEL-5734
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5734
>             Project: Camel
>          Issue Type: New Feature
>          Components: jmx
>    Affects Versions: 2.10.1
>            Reporter: Daniel Gredler
>            Assignee: Willem Jiang
>            Priority: Minor
>         Attachments: jmx-restart.patch
>
>
> Camel supports both warm and cold restarts for a couple of years now (see CAMEL-3012). However, cold restart is not possible via JMX because calling stop() shuts down the JMX service, and it becomes impossible to call start().
> I propose to add support for cold restarts via JMX by adding a restart() method to ManagedCamelContextMBean and ManagedCamelContext, which internally just calls stop() and then start().
> I'm attaching a patch with the proposed implementation and a test case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CAMEL-5734) Cold restart via JMX

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

Willem Jiang resolved CAMEL-5734.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.11.0

Applied the patch into trunk with thanks to Daniel.
                
> Cold restart via JMX
> --------------------
>
>                 Key: CAMEL-5734
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5734
>             Project: Camel
>          Issue Type: New Feature
>          Components: jmx
>    Affects Versions: 2.10.1
>            Reporter: Daniel Gredler
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 2.11.0
>
>         Attachments: jmx-restart.patch
>
>
> Camel supports both warm and cold restarts for a couple of years now (see CAMEL-3012). However, cold restart is not possible via JMX because calling stop() shuts down the JMX service, and it becomes impossible to call start().
> I propose to add support for cold restarts via JMX by adding a restart() method to ManagedCamelContextMBean and ManagedCamelContext, which internally just calls stop() and then start().
> I'm attaching a patch with the proposed implementation and a test case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CAMEL-5734) Cold restart via JMX

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

Daniel Gredler updated CAMEL-5734:
----------------------------------

    Attachment: jmx-restart.patch
    
> Cold restart via JMX
> --------------------
>
>                 Key: CAMEL-5734
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5734
>             Project: Camel
>          Issue Type: New Feature
>          Components: jmx
>    Affects Versions: 2.10.1
>            Reporter: Daniel Gredler
>            Priority: Minor
>         Attachments: jmx-restart.patch
>
>
> Camel supports both warm and cold restarts for a couple of years now (see CAMEL-3012). However, cold restart is not possible via JMX because calling stop() shuts down the JMX service, and it becomes impossible to call start().
> I propose to add support for cold restarts via JMX by adding a restart() method to ManagedCamelContextMBean and ManagedCamelContext, which internally just calls stop() and then start().
> I'm attaching a patch with the proposed implementation and a test case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira