![]() |
|
Pramati Server ships with a Deploy Tool that is installed by default when you install Pramati Server. The Deploy Tool enables you to deploy enterprise applications on any J2EE-compliant application server. Applications can be deployed on local or remote servers.
There are three ways to start the Deploy Tool:
Click Connect or press Enter to open the Deploy Tool interface.
rundeploytool.bat located in the directory <install_dir>/server/bin.
For Unix platforms, run rundeploytool.sh located in the directory <install_dir>/server/bin.
This opens the Connect to Server dialog box as shown above. Provide the required details and click Connect or press Enter to open the Deploy Tool interface.
j2eeadmin@default> deploytool Loading Server Environment Starting DeployTool... DeployTool successfully loadedDeploy Tool invoked from the Server shell opens the Deploy Tool interface without prompting for the server details (the details are taken for the current instance). By default, it opens with a ‘No Archive Open’ message.
The tool obtains the following information from the Server:
For an undefined resource, add the resource through the Console. For details, read Configuring Resources.
Select Archive > Refresh Server Details to refresh the Server information displayed in the Deploy Tool. It is also possible to add resources to a running server.
You cannot deploy an application without resolving all tasks with regard to the Server environment. The arrow in the lower right corner of the Deploy Tool is green when there are incomplete tasks. Click the green arrow to move to the next incomplete task. To view all the incomplete tasks, choose View > All Tasks.
Complete all pending tasks using the Next Task option and resolve all deployment tasks before deploying an application.
When you open an archive, Deploy Tool automatically detects required mappings and relationships. Incomplete mappings or unresolved references are listed as unresolved tasks. These tasks must be completed before the application can be deployed.
If the archive contains an entity bean or it requires to be connected to a database, use datasources to map the bean fields to the fields in the database table.
To resolve tasks using the Deploy Tool, do the following:
Note: To ascertain the bean type, select the option (say, bankejb.jar) in the tree view present on the left side. Select the bean you want to know the details about.
Choose Archive > Refresh Server Details to refresh the Deploy Tool with the most recent Server details. This implies that to add datasources in the Server, you do not need to close and restart the Deploy Tool.
pramati-j2ee-server.xml and pramati-or-map.xml, every time it is deployed. You are prompted to save the archive before closing the archive, before closing the Deploy Tool, or on clicking Exit in the main menu.
The deployment process involves:
<install_dir>/server/nodes/<node_name>/archives (jar) and in <install_dir>/server/nodes/<node_name>/archives/public_html (war). server_name is the name of the configured server on which the application has been deployed.Code generation and RMIC operations usually delay the deployment process. On Pramati Server, you can generate code, perform RMIC, and start the prepared code at any point in time. You can then use the prepared code to build a .par without repeating the whole process.
After preparing the archive, save it in a file with a .par extension at <install_dir>/server/nodes/<node_name>/archives/parchive.
For example, selecting Archive > Make Prepared Archive > BankDesk.ear prepares and places the BankDesk.ear.par under <install_dir>/server/nodes/<node_name>/archives/parchives.
A .par file can be further distributed to any server where the application needs to be deployed. The .par files are particularly useful when applications that have been developed locally require to be deployed on the Internet.
Read Preparing and Deploying Web Applications for more information about distributing applications.
Using the Start option to deploy an application is faster than using the Deploy Tool because all the deployment tasks are already completed.
http://<host on which the server is running>:<port number on which the server is listening>/<context root>/<first page of the application>
The deployment process requires the deployer to deploy Web applications and EJBs, and resolve any server-specific dependencies that may arise during deployment.
| © Pramati Technologies 2007 | Runs on Pramati Server | Feedback | Legal |