Deploying Modules To The Server
To deploy a module to the server:
- 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
- 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.
- 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.
- Choose Deploy from the Tools menu.
- Fill in the appropriate information on the
Deploy Module popup dialog box.
To Undeploy a module:
- Select the appropriate server from the Servers tree.
- On the General tabbed pane, select the module you want to
undeploy.
- Click Undeploy. The module is removed from the server.
To Update a module and redeploy it:
- Select the module from the tree.
- From the Edit menu, select Update Module Files.
- Deploy the module by choosing the Deploy menu item from the Tools
menu.
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:
- Select the appropriate server from the Servers tree.
- On the General tabbed pane, select the module you want to stop.
- Click Stop. Execution of the module stops. However, it continues to
reside on the server.
To Start a module:
- Select the appropriate server from the Servers tree.
- 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.
- Click Start. The module is restarted.
Autodeploy
To deploy modules automatically to the Sun Java System Application
Server, perform the
following steps:
- Under the domains folder, create a folder named "autodeploy".
- Store your JAR, EAR, and RAR files in the autodeploy folder.
- 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