This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Starting and Stopping Tomcat ...
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 15, 2006
12:21 PM
Starting and Stopping Tomcat ...
Hi,
I need to stop Tomcat in order to install a web application WAR file and then start it up again.
What well-proven technique is out there?
I greatly appreciate the feedback!
Thanks
I need to stop Tomcat in order to install a web application WAR file and then start it up again.
What well-proven technique is out there?
I greatly appreciate the feedback!
Thanks
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 15, 2006
07:30 PM
Best to my knowledge, there is no standard way of stopping tomcat, just killing the process.
But- perhaps in latest versions it was changed...
But- perhaps in latest versions it was changed...
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 16, 2006
01:08 PM
How can I exectue a .bat file???
Wouldn't this be a way of restarting Tomcat, by running a batch file on the target windows machine?
This is only necessary if Tomcat's autodeploy attribute is set to false.
Thanks
Wouldn't this be a way of restarting Tomcat, by running a batch file on the target windows machine?
This is only necessary if Tomcat's autodeploy attribute is set to false.
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 21, 2006
07:25 PM
If tomcat is running as a Windows service (e.g. you used "service.bat" to install it as a Windows service), you can either:
* invoke NET START and NET STOP commands to start and stop the service.
* Can you use VBScript with MultiPlatform? - the following is something I used with an MSI installer, but I suspect that it could be modified to be invoked from ISMP (you would need to get the service name from something other than Session.Property..)
Dim objShell
dim sServiceName
Function StartService()
sServiceName = Session.Property("SERVICENAME")
Set objShell=CreateObject("Shell.Application")
If objShell.ServiceStart(sServiceName, FALSE) Then
StartService = True
Else
StartService = False
End If
End Function
Function StopService()
sServiceName = Session.Property("SERVICENAME")
Set objShell=CreateObject("Shell.Application")
If objShell.ServiceStop(sServiceName, FALSE) Then
StopService = True
Else
StopService = False
End If
End Function
* invoke NET START and NET STOP commands to start and stop the service.
* Can you use VBScript with MultiPlatform? - the following is something I used with an MSI installer, but I suspect that it could be modified to be invoked from ISMP (you would need to get the service name from something other than Session.Property..)
Dim objShell
dim sServiceName
Function StartService()
sServiceName = Session.Property("SERVICENAME")
Set objShell=CreateObject("Shell.Application")
If objShell.ServiceStart(sServiceName, FALSE) Then
StartService = True
Else
StartService = False
End If
End Function
Function StopService()
sServiceName = Session.Property("SERVICENAME")
Set objShell=CreateObject("Shell.Application")
If objShell.ServiceStop(sServiceName, FALSE) Then
StopService = True
Else
StopService = False
End If
End Function
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 21, 2006
08:51 PM
I think the point is multiplatform might not be windows so no SCM and no scripting host.