Application Server Quickstart---4
天下维客,你可以修改的网络知识库
|
Eclipse编辑 技术应用:
其他资源: |
J2EE Project Deployment
J2EE Project Deployment Modes
MyEclipse can deploy Web, EJB, and Enterprise Application projects to any MyEclipse enabled application server. Two deployment packaging modes are supported by MyEclipse: exploded archive deployment and packaged archive deployment.
- Packaged Archive Deployment - This is the J2EE standard application packaging model for deployment. It consists of packaging an application's resource into a single ZIP archive file with an internal J2EE standard file structure. The resulting single archive file is then deployed to a target application server by application server's connector. Packaged archive deployment does not support incremental or automatic archive update. Thus a package deployment will become out of sync with its source project as edits are made to the project's resources. Periodic redeployment is required to resynchronize a deployed application's state with the latest version of its MyEclipse project source.
- Exploded Archive Deployment - This is a convenient but non-standard J2EE application packaging and deployment model. Similar to packaged deployment, an application's deployable resources are organized to conform to a J2EE standard directory/file structure. But, rather than create and deploy a single archived file, the entire application resource structure - directories and files - is copied by the application server connector to the server's special deployment location for exploded archives. The MyEclipse Deployment Service, using "Sync-on-Demand" technology, will keep all MyEclipse project deployments synchronized with all source changes in their corresponding MyEclipse project. Please note that exploded deployment is not a standard J2EE deployment form and may not be supported by all application servers.
Consult your application server vendor for the modes supported by your application server.
Deploying a J2EE Project to an Application Server
Step-1: Open Deployment dialog
From the MyEclipse Perspective, launch the Project Deployments dialog (see Figure 9 for the deployer toolbar button).
Figure 9. Deployment toolbar action
Step-2: Select J2EE project to deploy
Select the J2EE project you wish to deploy from the "Project" field drop-down list.
Figure 10. Deployer dialog
Next select the Add... button to open the New Deployment Wizard (see Figure 11).
Figure 11. New Deployment dialog
Step-3: Specify new deployment details
- Select the desired Deployment Type, Exploded Archive or Packaged Archive.
- In the Server drop-down list, select the target deployment server. Note that only servers that support the desired deployment type and project type will be presented as valid choices.
- If the deployment is Exploded Archive then the Exploded location field will be automatically filled with the appropriate deployment path, based on the type of server that is selected.
- Select Finish to initiate the deployment.
- The New Deployment Wizard will display a progress monitor that describes deployment progress.
- Upon completion of the deployment the New Deployment Wizard will close and control is returned to the Project Deployments dialog.
Figure 12. New HelloWorld deployment






