![]() |
|
Pramati Server provides a command line interface, the Pramati Server Shell, using which you can perform various Server-related tasks, such as deploying and checking status, from local and remote machines. This chapter discusses the various J2EE Shell commands that can be used for managing applications.
The Server command line interface displays a prompt on which the following commands may be executed within the Server VM for managing applications:
Table 1: Description of J2EE Shell commands
| Command | Description |
|---|---|
| help command | Displays help messages. If command name is provided, it provides a more detailed usage help for that command. |
| classloader_debug | Sets classloader debugging on/off. |
| deploy | Deploys the given ear/jar/rar/war on the server. |
| deploygroup | Deploys multiple applications as part of a group. |
| deploytool | Brings up the deploy tool connected to the Server for specifying bean references and deploying applications. |
| distribute_app | Distributes a deployed application or par file to a Server. |
| list | Displays the list of all deployed applications on the Server. |
| make_par | Makes a prepared archive (.par) file which is distributable, and saves it in the parchives directory, under the archives directory. |
| prepare | Prepares the ear/jar/war/rar at the given path. |
| remove | Removes the application from the Server if it is not running. |
| start | Starts the application that is already deployed but not active. |
| status | Shows details of J2EE services - naming, resources, transactions, EJB and Web containers, load balancer (for the Web request dispatcher, if enabled), and cluster (if the service is enabled), socket, and session. Use the resource-name for resource service. |
| stop | Similar to the undeploy function, but only stops the currently running application and does not remove the ear from the file system. The application may be restarted without redeploying it. |
| undeploy | Undeploys the applications from the Server. Stops the application, if necessary, and removes the application from the archives directory in the server installation directory. |
| validateappstart | Validates an archive that has been deployed but not started. |
| validatearchive | Validates the ear/jar/war at the given path. |
| who_load_me | Determines the loading classloader for a class. |
Click here to know how to validate archives using Server Shell.
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |