Exit Print View

Sun GlassFish Enterprise Server v3 Administration Guide

  This Document Entire Library
Print View

Document Information

Preface

1.  Overview of Enterprise Server Administration

Default Settings and Locations

Configuration Tasks

Administration Tools

Instructions for Administering Enterprise Server

Part I Runtime Administration

2.  General Administration

3.  Administering Domains

4.  Administering the Virtual Machine for the Java Platform

5.  Administering Thread Pools

6.  Administering Web Applications

7.  Administering the Logging Service

8.  Administering the Monitoring Service

9.  Administering Life Cycle Modules

10.  Extending Enterprise Server

About Add-on Components

Adding Components

To Install an Add-on Component

Updating Installed Components

To Update an Installed Component

To Update All Installed Components in an Image

Removing Installed Components

To Uninstall an Installed Component

To Uninstall and Revert to an Older Version of a Component

Part II Security Administration

11.  Administering System Security

12.  Administering User Security

13.  Administering Message Security

Part III Resources and Services Administration

14.  Administering Database Connectivity

15.  Administering EIS Connectivity

16.  Administering Internet Connectivity

17.  Administering the Object Request Broker (ORB)

18.  Administering the JavaMail Service

19.  Administering the Java Message Service (JMS)

20.  Administering the Java Naming and Directory Interface (JNDI) Service

21.  Administering Transactions

Part IV Appendixes

A.  Subcommands for the asadmin Utility

Index

Adding Components

This section provides instructions for using the pkg command to install Enterprise Server add-on components on your deployed Enterprise Server.

To Install an Add-on Component

The pkg command enables you to install an add-on component on your system. If multiple versions of a package are available, the latest one is applied unless you specify otherwise. The pkg command, located in the as-install-parent/bin directory,


Note - If the pkg component, the updatetool component, or any other valid component that you try to invoke from the command line is not yet installed on your deployed Enterprise Server, you will receive a query asking if you want to install the component. Answer Y to install the component.


Before You Begin

Enterprise Server v3 must be fully deployed before you can install additional components. If you need installation instructions, see Sun GlassFish Enterprise Server v3 Installation Guide.

  1. List your installed components:

    pkg list

    Information similar to the following is displayed:

    NAME (AUTHORITY)                              VERSION         STATE      UFIX
    glassfishv3-common                            0-1             installed  ----
    glassfishv3-ejb                               0-1             installed  u---
    glassfishv3-nucleus                           0-1             installed  ----
    glassfishv3-web                               0-1             installed  ----
    grails                                        1.0-1.0         installed  ----
    jersey                                        0.7-0.1         installed  u---
    jmaki                                         1.8.0-1.0       installed  ----
    jruby                                         1.1.1-1.0       installed  ----
    metro                                         1.2-1           installed  u---
    pkg                                           0.1.4-6.564     installed  u---
    python2.4-minimal                             2.4.4-6.564     installed  u---
    updatetool (glassfish.org)                    2.0-6.564       installed  u---
    wxpython2.8-minimal                           2.8.7.1-6.564   installed  u---
  2. List all packages that are available:

    pkg list -a

    Information similar to the following is displayed from the repository:

    NAME (AUTHORITY)                              VERSION         STATE      UFIX
    glassfishv3-common                            0-1             known      u---
    glassfishv3-common                            0-1             known      u---
    glassfishv3-common                            0-1             installed  ----
    glassfishv3-ejb                               0-1             known      u---
    glassfishv3-ejb                               0-1             known      u---
    glassfishv3-ejb                               0-1             known      u---
    glassfishv3-ejb                               0-1             installed  u---
    glassfishv3-ejb                               0-1             known      ----
    glassfishv3-nucleus                           0-1             known      u---
    glassfishv3-nucleus                           0-1             known      u---
    glassfishv3-nucleus                           0-1             installed  ----
    glassfishv3-web                               0-1             known      u---
    glassfishv3-web                               0-1             known      u---
    glassfishv3-web                               0-1             installed  ----
    grails                                        1.0-1.0         installed  ----
    javadb                                        0-1             known      u---
    javadb                                        0-1             known      u---
    javadb                                        0-1             known      ----
    jersey                                        0.7-0.1         installed  u---
    jersey                                        0.7-0.2         known      u---
    jersey                                        0.7-0.3         known      u---
    jersey                                        0.8-0.1         known      ----
    jmaki                                         1.8.0-1.0       installed  ----
    jruby                                         1.1.1-1.0       installed  ----
    metro                                         1.2-1           installed  u---
    metro                                         1.2-2           known      u---
    metro                                         1.2-3           known      ----
    pkg                                           0.1.4-6.564     installed  u---
    pkg                                           0.1.5-8.724     known      ----
    python2.4-minimal                             2.4.4-6.564     installed  u---
    python2.4-minimal                             2.4.4-8.724     known      ----
    updatetool                                    2.0-6.564       installed  u---
    updatetool                                    2.0-8.724       known      ----
    wxpython2.8-minimal                           2.8.7.1-6.564   installed  u---
    wxpython2.8-minimal                           2.8.7.1-8.724   known      ----
  3. Navigate to the as-install directory.

  4. Install a package from the available packages list.

    Use the following syntax: pkg install package-name. For example:

    pkg install javadb

    The most recent version of the component is installed and information similar to the following is displayed:

    DOWNLOAD                                     PKGS       FILES     XFER (MB)
    javadb                                       0/1      61/200     2.10/7.26 
    
    PHASE                                        ACTIONS
    Install Phase                                222/222 
  5. To apply your changes, restart Enterprise Server.

    See To Restart a Domain.

See Also

Full syntax and options for using the pkg command are described in the pages in the as-install/pkg/man/ directory. These reference pages are not displayed by using the man command. Instead, use a command such as more or cat.