For a basic understanding of Provisioning using Application Server 6.0 N1SPS Plugin and the supported versions, please refer to Jane Young's blog on Using N1SPS in GlassFish V2 Enterprise Environment
and Prashant's blog on Provisioning GlassFish V2 with N1SPS
. Here I try to explain how the Java EE (j2ee) Applications/Modules can be deployed or undeployed using the plugin.
To deploy an application, first create a deployment component to upload the application archive to the master server repository and then use that component to deploy the application. Here are the steps:
01 Create a folder to hold the component
Click on 'Manage Plans and Components' on the left and choose 'Folders' tab.
Click on 'New Folder' which will bring up a 'New Folder Wizard'.
Provide the information needed by wizard, such as 'Folder Name'. In our case, let us call it 'Deploy'.
Once the folder is created successfully, you'll see it on the left.
02 Create deployment Component
Drop down the tree in the left pane under 'Manage Applications' until you see 'Application Server'. Click on 'Application Tasks' and select 'Create Application Component' which will bring up a 'New Component Wizard'.
Provide component name and folder.
Now provide server name and deployment application archive details.
03 Deploy the Application
Using the deployment component created above, let us deploy the application.
Select 'Manage Plans and Components' from the left navigation menu.
Click on 'Deploy' folder. Click on 'Components' tab on the right and notice the 'deploy' component.
Click on 'deploy' component, select 'Variable Sets' tab, and click on 'New Variable Set' which will open a 'New Variable Set' wizard. Provide the required information and 'save'.
Select 'Procedures' tab on the right and check 'install:default' to deploy the application. Now click on 'Run Procedure', provide the required information and click on 'Run' which will deploy the application.
Successful deployment can be verified by examinig the 'Hosts' table on 'Where Installed' tab.
04 Undeploy the Application
To undeploy the application, check 'uninstall:defau;t' on 'Procedures' tab, select the host and click on 'Run Selected Installation'
Now select 'Run'
Successful undeployment can be verified by examinig the 'Hosts' table on 'Where Installed' tab.
The deployment and undeployment of applications/modules can also be done using generic asadmin component. For details, please see my blog on Support for asadmin command in Application Server 6.0 N1SPS Plugin.
For additional resources, please refer to
Application Server N1SPS Plugin - Blogs and Resources