Skip to main content
Legend
Sep 1, 2013 9:10 AM UTC
Question

How to restart ColdFusion 10 programatically

Hi,

Does anyone have the code (CFSCRIPT/CFML) to restart a CF10 instance?

The code that worked for us in CF 7 and 8 no longer works on v10.

Regards,

Mark

    This topic is closed to new replies. Start a new post to keep the conversation going.

    16 replies

    Anit_Kumar
    Inspiring
    Sep 1, 2013 9:48 AM UTC

    Hello Mark,

    Thank you for your post.

    Can you share the code, that previously worked.

    Regards,

    Anit Kumar

    Translate
    tribuleAuthor
    Legend
    Sep 1, 2013 10:49 AM UTC

    Sure, it was:

      <cfscript>

        oJRun = CreateObject("java", "jrunx.kernel.JRun");

        oJRun.restart(oJRun.getServerName());

      </cfscript>

    CF10 now says the class jrun.kernel does not exist - is there an equivalent please?

    Thanks,

    Mark

    Translate
    Inspiring
    Sep 1, 2013 10:56 AM UTC

    It shouldn't come as a surprise that that JRun-specific code doesn't work on Tomcat ;-)

    I dunno the answer to your question, but googling "restart tomcat programmatically" sure comes up with a lot of results. I imagine one or more of those will point you in the right direction.

    --

    Adam

    Translate