Provisioning GlassFish V2 with N1SPS


Introduction

This blog gives an overview of N1 Service Provisioning System (N1SPS) Plugin (version 6.0) for Sun Java System Application Server (SJSAS). This has detailed instructions with some scenarios on how the Application Server plugin works.

Supported Versions of SJSAS

The following versions of Application servers are supported with this plugin

1) SJSAS 9.1 the Productized version (from Sun) of Glassfish V2 ([1],[2]).
2) SJSAS 8.2, which is part of Java Enterprise System 5
3) SJSAS 8.1, which is part of Java Enterprise System 4

Prerequisites

Following installation's are required in order to continue the installation of Application server Plugin version 6.0

1) Installation of N1SPS Master Server.
2) Installation of N1SPS Remote Agent.

You can download the N1SPS for free.

What is N1SPS

N1 Service Provisioning is a application/service which help you to  Install/Monitor/Upgrade/virtualize the Operating systems and applications on thousands of hosts across the geos in heterogeneous environments.

N1 Service Provisioning System is capable of automating application provisioning through "One-Touch" installation, configuration, and updating thousands of servers. It simplifies application life-cycle management by provisioning business services across heterogeneous environments. This is all done using either through an easy to use and familiar GUI. Also available is the command line interface, which will help you write automated scripts to provision the systems.

Please see the Demo on N1SPS at this Link . Following image shows the key features of the N1SPS.



Key Terms of N1SPS

Plan : A plan is defined by an xml file that contains a set of instructions which calls the procedures defined in a component and are targeted on one or more hosts. Ex., you can have a plan to deploy an application to multiple targets (like a domain, cluster and a standalone instance) all as part of single plan execution.

Component : A component is a deployable object within the N1 Service provisioning System software. In our Application Server Plugin, there are several built-in components, example being a Domain Component or a Cluster Component.

Variable Set : A variable set is list of attributes which will be part of a plan or component when the user executes a Plan on a Component. A plan or/and a component may have variable set. The attributes in the variable set can contain the 'default' values and if they are required, the user has to provide them in order to run the plan.

Plugin
: Plugins are packaged solutions that uses plans and components  and extends the provisioning capability of the product for a specific platform,application, or environment. Its easy way to provision the application. System administrators can easily deploy the applications using plugins. Application Server Plugin is one of them

Application Server Plugin

Application Server Plugin version 6.0 works for both N1SPS 6.0 and 5.2. Application Server Plugin allows you to provision SJSAS 9.1 (GlassFish V2), JES 5 and JES 4 installation for various platforms (Please see the product page for the list of supported platforms). The key features of this plugin are
  1. Installation tasks: Ability to install/uninstall Appserver/HADB and LoadBalancer Plugin for WebServer 6.0/7.1
  2. Infrastructure tasks: Ability to administer 'Domain Admin Server', 'Node Agent', Standalone/Clustered Instances, Cluster
  3. Application tasks: Ability to deploy,undeploy, create and delete-reference an application
  4. Resource tasks: Ability to manage several resources. They are JMS, JDBC, JDBC Connection Pool, Threadpool, Resource Adapter, Admin Object, Connector, Connector Connection Pool
  5. Configuration Tasks: Ability to configure HA Persistence, Log Levels, Monitoring Levels, Heap Size, JVM Options, Password Aliases, LB and HADB
  6. Other Tasks: Contains the asadmin task which allow user to run a customized asadmin command either as a local/remote command and  as a component or an arbitrary command. This task can be used for anything which is supported by the asadmin CLI. This will be a handy task when you dont see the support from the built-in tasks of Application Server Plugin. Please see Sreeni's blog for more details about this task.

Uninstalling existing Appserver Plugin

If there is an existing old installation of Appserver Plugin, please remove it. Following are the steps to do so.

  1. Click on 'Manage Applications' under 'Applications' in the tree on left pane.
  2. Before you delete the 'Application Server' in the right pane. You need to run the 'RemoveSystemServicePlan'. To do this, click on 'ApplicationServer', then click on the tab with name 'Plans'. Then click on 'RemoveSystemServicePlan'
  3. Need to create the Plan Variable set for this plan to run. Go to the tab 'Variable Set' and click on 'New Variable Set'. Run through the wizard to create a new variable set.
  4. Now, Click on 'Run Plan..'.
  5. Back to 'Manage Applciations' and then select the 'Application Server' check box in the right pane. Click on 'Delete'


Installing the Appserver Plugin

  1. Click on 'Manage Applications' under 'Applications' in the tree on left pane.
  2. Click on the 'import' button in the right pane.
  3. Download the N1SPS Appserver Plugin version 6.0 (Due to release on 10/04/07) and point to that location.
  4. Click on 'Import Application'
  5. The Appserver Plugin is now imported.
  6. Now you need to do 'Prepare hosts' by selecting all the Remote agents (Installing the RA is prerequisite), for the RA's to sync with this plugin.

Scenario 1 - Installing Appserver

1) Drop down the tree in the left pane under 'Manage Applications' until you see 'Application Server'. Click on 'Installation Tasks' and Select 'Install' on the right pane.


2) Select the 'Target Host', the RA machine where you want to install the Appserver.
3) You need to additionally create a variable set for this component. Click on the 'New Variable Set' and fill in the fields as below (the source image is the location of the Appserver installation binary).
3.1) For Source image, download SJSAS 9.1 for free (Also supported are the 8.1 from JES 4, and 8.2 from JES 5 versions of Application Server), extract and point to that location.


4) Click on 'Run' to install the Application server on selected target hosts. You will see the progress bar until the installation is complete.
5) You can verify if the installation is successful, by going into the 'View Activity Log' where you view all the executed plans.

Scenario 2 - Deploying an application

Deploying the application can be done by creating the Deployment component for an application/module. Sreeni's blog explains this scenario in great detail.

Other Resources

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

Comments:

Good overview of N1SPS and AppServer Plugin. One thing to note is that Application Server Plugin supports GlassFish V2 IFR (Independent Feature Release) installer. But user can do any installation of GlassFishV2 and use the "markOnly" install from N1SPS Application Server Plugin.

Posted by janey on September 16, 2007 at 11:00 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

bloggerprashanth

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