Skip navigation
Currently Being Moderated

Restarting a different applicaiton?

Dec 13, 2009 5:19 PM

hum. small question, I have 2 applications, one app ~administers~ the other. I can restart the admin application easily enough with onApplicationStart(); , but how can I restart the slave application???

 

-thanks

-sean

 

No answers?>?>?

 

can this even be done?

 
Replies
  • Currently Being Moderated
    Dec 14, 2009 2:14 PM   in reply to sean69

    <cfscript>
    applicationTracker = createObject("java","coldfusion.runtime.ApplicationScopeTracker");
    daapplication = applicationTracker.getApplicationScope("saidApplication");
    applicationTracker.cleanUp(daapplication);
    </cfscript>

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 15, 2009 10:34 PM   in reply to sean69
    hum. small question, I have 2 applications, one app ~administers~ the other. I can restart the admin application easily enough with onApplicationStart(); , but how can I restart the slave application???

    I assume the slave application is in a subdirectory of the admin application. I also assume the slave application's Application.cfc is within that subdirectory. All that is needed is for the admin to open any cfm page in the slave application.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 16, 2009 2:04 PM   in reply to sean69

    no - actually the slave is on a different domain altogether.

    it is possible that at some point it could be on a different server! [but not very likely]

    No problemo. You may use cfhttp to call a page in the slave application.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 17, 2009 11:12 AM   in reply to sean69

    An application restart is only relevant if you want to reset application variables in the admin application as well as in the slave application.However, you've so far mentioned no application-wide variables.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points