Wiki Markup |
---|
{scrollbar} |
Excerpt |
---|
There are several alternatives available for starting and stopping applications |
Table of Contents |
---|
Via Geronimo Console
As an alternative to the command line option you can use the Geronimo Administration Console to change the status of an application in three different ways. You can use the Deployer tool, the Geronimo Administration Console, or GShellthe modules. Open the Geronimo Administration Console and navigate to Applications on the Console Navigation menu on the left hand side. Depending on the type of application you want to change the status, you will choose either Application EARs or Web App WARs. For this example we continue to use HelloWorld.war
as the sample application, hence we will select Web App WARs.
We used this portlet in the Deploying and undeploying applications section to install and remove applications via the Geronimo Administration Console. From this same portlet you can also change the status of the applications. The available commands within the portlet will change depending on the status for each application. If the application is in running status (started), the commands Stop and Restart will be displayed. If the application is stopped, only the command Start will be displayed. The Uninstall command will always be displayed independently of the status of the application. To change the status of the application just click on the command (Start or Stop).
Via Deployer tool
The Deployer tool has many commands. In Deploying and undeploying applications section we have explored mainly deploy and undeploy and very briefly list-modules. This section is going to focus on the latter command to retrieve the name of the module we want to change the status and will introduce two new commands, start and stop. Later we will discuss the use of the Geronimo Administration Console as the alternative method.
...
No Format bgColor #000000 borderStyle solid
D:\geronimo-tomcat6-jee5-2.0-M2\bin>deploy --user system --password manager start sample.applications/HelloWorldApp/2.0/war
Using GERONIMO_BASE: D:\geronimo-tomcat6-jee5-2.1
Using GERONIMO_HOME: D:\geronimo-tomcat6-jee5-2.1
Using GERONIMO_TMPDIR: D:\geronimo-tomcat6-jee5-2.1\var\temp
Using JRE_HOME: C:\Java\jdk1.5.0_06\\jre
Started sample.applications/HelloWorldApp/2.0/war @
http://hcunico:8080/hello
Via Geronimo Console
As an alternative to the command line option you can use the Geronimo Administration Console to change the status of the modules. Open the Geronimo Administration Console and navigate to Applications on the Console Navigation menu on the left hand side. Depending on the type of application you want to change the status, you will choose either Application EARs or Web App WARs. For this example we continue to use HelloWorld.war
as the sample application, hence we will select Web App WARs.
We used this portlet in the Deploying and undeploying applications section to install and remove applications via the Geronimo Administration Console. From this same portlet you can also change the status of the applications. The available commands within the portlet will change depending on the status for each application. If the application is in running status (started), the commands Stop and Restart will be displayed. If the application is stopped, only the command Start will be displayed. The Uninstall command will always be displayed independently of the status of the application. To change the status of the application just click on the command (Start or Stop).
Via GShell
You can also use GShell deploy/start commands to manage the status of an application. Similarly, deploy/stop can be used to stop the running application, and deploy/restart is used to restart a started or stopped application. See Geronimo GShell Commands for more information about these commands and their options.