DevPortal

How do I Deploy Applications Using Server Shell?


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

CommandDescription
help commandDisplays help messages. If command name is provided, it provides a more detailed usage help for that command.
classloader_debugSets classloader debugging on/off.
deployDeploys the given ear/jar/rar/war on the server.
deploygroupDeploys multiple applications as part of a group.
deploytoolBrings up the deploy tool connected to the Server for specifying bean references and deploying applications.
distribute_appDistributes a deployed application or par file to a Server.
listDisplays the list of all deployed applications on the Server.
make_parMakes a prepared archive (.par) file which is distributable, and saves it in the parchives directory, under the archives directory.
preparePrepares the ear/jar/war/rar at the given path.
removeRemoves the application from the Server if it is not running.
startStarts the application that is already deployed but not active.
statusShows 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.
stopSimilar 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.
undeployUndeploys the applications from the Server. Stops the application, if necessary, and removes the application from the archives directory in the server installation directory.
validateappstartValidates an archive that has been deployed but not started.
validatearchiveValidates the ear/jar/war at the given path.
who_load_meDetermines 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