Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Re: How to restart ColdFusion 10 programatically

$
0
0

There won't be a "CF way", because CF is an app, and completely unaware of what servlet container it is being run by. However each given servlet container is going to have a completely different API, so you need to find the API-specific way of restarting the servlet container.

 

The JRun code you cite about isn't a "CF way", it's a Java way, and it's specifically a JRun way of doing it. If you were running your CF instances on Tomcat or Websphere or whatever other servlet containers were supported on <= CF9, then that code would not help you. Bear in mind that even on CF9 and before, JRun was simply the default servlet container (well: it's a J2EE server, but it's the servlet container that it includes that's significant here), and one was not compelled to run CF on JRun.  Similarly, one is not compelled to run CF10 on Tomcat, so there simply will not be a "CF way", as the notion doesn't make sense. What you're asking for is akin to asking for a MS-Word way of restarting Windows. There won't be one.

 

So you need to look at the Tomcat API and see if there's a way of restarting a Tomcat instance. And that is well-trod ground on google.

 

Another question that is begged here... why are you wanting to restart your Tomcat instance from within your CF app?

 

 

--

Adam


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>