Wednesday Oct 10, 2007

Application Server N1SPS Plugin - Blogs and Resources

Thanks to Prashanth, Jane and Rajeshwar for the contributions. This is meant to be a collection of blogs and resources so that interested user has one place to start with.

Download N1SPS 6.0 Application Server Plugin

Blogs on Application Server N1SPS Plugin:

N1SPS Resources:

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-1763394-3"; urchinTracker(); </script>

Application Server Configuration Using N1SPS Plugin's asadmin Component

Configuration of the Application Server is done mostly using the predefined components under the 'Configuration Tasks Node' of Application Server Plugin Navigation Menu. For details, please refer to Prashant's blog on the Plugin Tasks. It is also possible to configure the Application Server using Generic asadmin component under 'Other Tasks'. This blog will explain the use of generic asadmin component for configuring Application Server. Here are the steps for configuring maximum heap size, steps are similar for configuring other options as well.

01. Determine the current Value

Determine the current value corresponding to maximum heap size JVM Options using admin console.
 

From the above image, we can see that the current value is "-Xmx512m" which we would like to increase to 1024m (1 GB).
 

02. Delete the existing JVM option

The equivalent asadmin command for deleting the jvm option is 'asadmin delete-jvm-options -- -Xmx512m'.
 

Select 'Other Tasks' from the Plugin navigation menu and 'Remote Command' on the right.
 

Provide the values for host, select 'Edit Variable Set' and define new variable set called 'delete_heap_512m' as shown below.
 

Click on 'Save' and 'Run' on the main window.
 

03. Create new JVM option

The equivalent asadmin command for creating the jvm option is 'asadmin create-jvm-options -- -Xmx1024m'.
Select 'Other Tasks' from the Plugin navigation menu and 'Remote Command' on the right.
 

Provide the values for host, select 'Edit Variable Set' and define new variable set called 'create_heap_1024m'.

Click on 'Save' and 'Run' on the main window.
 

04. Verify the new Value

Determine the new value corresponding to maximum heap size JVM Options using admin console.
 


 

For additional resources, please refer to Application Server N1SPS Plugin - Blogs and Resources

Application Server 6.0 N1SPS Plugin - Deployment of Applications

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

About

msreddy

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today