Deploying Modules To The Server

To deploy a module to the server:

  1. First make sure that your server is running. To start the server included with this release, type the following at the command line:
    asadmin start-domain --domain domain1
  2. Make sure that your server appears in the Servers tree. If the tree does not contain a Server node, choose Add Server from the File menu and fill in the appropriate information in the popup dialog box.
  3. Select the module you want to deploy from the Tree. If the module does not appear there, you need to either open it (if it is already packaged) or create it. To open the module, choose Open from the File menu. To create a new module, choose New from the File menu and choose the appropriate type of module from the New submenu.
  4. Choose Deploy from the Tools menu.
  5. Fill in the appropriate information on the Deploy Module popup dialog box.
To Undeploy a module:
  1. Select the appropriate server from the Servers tree.
  2. On the General tabbed pane, select the module you want to undeploy.
  3. Click Undeploy. The module is removed from the server.
To Update a module and redeploy it:
  1. Select the module from the tree.
  2. From the Edit menu, select Update Module Files.
  3. Deploy the module by choosing the Deploy menu item from the Tools menu.
  4. Deployment Tool recognizes that the application or the module has been deployed before and redeploys the application or the module to the server. A confirmation dialog asks if you want to redeploy the application.

To Stop a module from running:
  1. Select the appropriate server from the Servers tree.
  2. On the General tabbed pane, select the module you want to stop.
  3. Click Stop. Execution of the module stops. However, it continues to reside on the server.
To Start a module:
  1. Select the appropriate server from the Servers tree.
  2. On the General tabbed pane, select the module you want to start. If the module doesn't appear in the list, you first need to deploy it.
  3. Click Start. The module is restarted.

Autodeploy

To deploy modules automatically to the Sun Java System Application Server, perform the following steps:

  1. Under the domains folder, create a folder named "autodeploy".
  2. Store your JAR, EAR, and RAR files in the autodeploy folder.
  3. In the Sun Java System Application Server Admin Console, enable the Autodeploy option and set the Autodeploy Poll Interval time. For detail instructions, consult Admin Console online help.

The modules stored under the autodeploy folder is deployed to the target server. You can view the deployed modules in the Deployment Tool. Select the server node from the tree. The right pane of the tool displays the list of deployed objects.



Legal Notices