Contents | Previous | Next
7. Deploy the Archive File to Sun ONE Server
The Sun ONE plugin can be used to deploy J2EE component archives
(jar, war, rar or ear files)
on the local or the remote instances of the Sun ONE Application Server 7.
There are two ways to deploy an archive file:
- Right-click on
HelloUser.jar. Click Deploy
options of HelloUser.jar. Click Deploy. The Deployment Tool
dialog box pops up. This will have all the details about the Server Instance,
Deployment Name and the path of the archive to deploy. See Figure 34 for details.
Figure 34: The Deployment Properties
dialog box for the details about deployment
- Select the server Instance (local or remote),
enter a deployment name and then click OK.
The selected server instance will be used when you choose to deploy with a right-click.
- Another way to deploy this session bean is by selecting the Enterprise Deployment item from the Tools menu. The Enterprise Deployment Tool windows appears with Deploy selected as the Action. Select a target instance from the Server Instance combobox. Enter a unique deployment name and select the archive that needs to be deployed. See Figure 36 for details.
Figure 35: HelloUser deployed on Sun ONE Application Server 7 using the right-click.
Figure 36: The Deployment Tool
dialog box from the Menu Bar for the details about deployment
7.1 Remote Deployment
This section provides tips for
deploying an archive to a remote Sun ONE Server. If you are deploying to a remote
Sun ONE Application Server 7.0, you need to set up a server instance for that
remote Sun ONE Application Server. This can be done in the
following ways:
- If Sun ONE Application Server 7 is not installed
on the machine having the JBuilder8 instance then you need to either
- map the Sun ONE home directory, on the remote
machine, to the machine where JBuilder8 is installed, or
- copy the <
Sun ONE Server Install directory>\lib
to the local machine(where JBuilder8 is installed) and specify that as the
Home Directory in the General tab while configuring Sun ONE Application
Server 7 in JBuilder 8 (Tools -> Configure Servers).
- If Sun ONE Application Server 7 is installed
on the same machine as JBuilder8 then the Home Dir in Tools
-> Configure Servers -> General tab will point to the local machine
Sun ONE installation, while on the Custom tab you can configure a server instance
of the remote Sun ONE Application Server 7 by specifying the remote machine's
IP address/hostname as the Server host name.
Contents | Previous | Next