Skip to main content
Legend
September 1, 2013
Question

How to restart ColdFusion 10 programatically

  • September 1, 2013
  • 1 reply
  • 4076 views

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 has been closed for replies.

    1 reply

    Anit_Kumar
    Inspiring
    September 1, 2013

    Hello Mark,

    Thank you for your post.

    Can you share the code, that previously worked.

    Regards,

    Anit Kumar

    tribuleAuthor
    Legend
    September 1, 2013

    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

    Inspiring
    September 1, 2013

    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