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

Using the asadmin Utility

Path to the asadmin Utility

asadmin Utility Syntax

Subcommands of the asadmin Utility

asadmin Utility Options and Subcommand Options

Operands of asadmin Utility Subcommands

To Run an asadmin Utility Subcommand in Single Mode

To Display Help Information for the asadmin Utility or a Subcommand

To Start a Multimode Session

To End a Multimode Session

To Run a Set of asadmin Subcommands From a File

Administering System Properties

To Create System Properties

To List System Properties

To Delete a System Property

Administering Resources

To Add Resources From an XML File

Listing Various System Elements

To Display the Enterprise Server Version

To List Applications

To List Containers

To List Modules

To List Subcommands

To List Timers

To Show Component Status

Using REST Interfaces to Administer Enterprise Server

Using REST URLs to Administer Enterprise Server

Using REST Resource Methods to Administer Enterprise Server

To Determine the Methods and Method Parameters That a Node in the Tree Supports

To Retrieve Data for a Node in the Tree

To Add a Node to the Tree

To Update a Node in the Tree

To Delete a Node From the Tree

Child Resources for Non-CRUD Operations

Securing Enterprise Server REST Interfaces

Formats for Resource Representation

JSON Resource Representation

XML Resource Representation

HTML Resource Representation

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

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

Administering Resources

This section contains instructions for integrating resources into the Enterprise Server environment. Information about administering specific resources, such as JDBC, is contained in other chapters.

The following topics are addressed here:

To Add Resources From an XML File

Use the add-resources subcommand in remote mode to create the resources named in the specified XML file. The following resources are supported: JDBC connection pool and resource, JMS, JNDI, and JavaMail resources, custom resource, connector resource and work security map, admin object, and resource adapter configuration.

The XML file must reside in the as-install/domains/domain1/config directory. If you specify a relative path or simply provide the name of the XML file, this subcommand will prepend as-install/domains/domain1/config to this operand.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. Add resources from an XML file by using the add-resources(1) subcommand.

    Information about properties for the subcommand is included in this help page.

  3. Restart Enterprise Server.

    See To Restart a Domain.

Adding Resources

This example creates resources using the contents of the resource.xml file on localhost.

asadmin> add-resources c:\tmp\resource.xml
Command : JDBC resource jdbc1 created successfully.
Command : JDBC connection pool poolA created successfully.
Command add-resources executed successfully.
See Also

You can also view the full syntax and options of the subcommand by typing asadmin help add-resources at the command line.