JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server 3.1 Administration Guide
search filter icon
search icon

Document Information

Preface

1.  Overview of GlassFish Server Administration

Default Settings and Locations

Configuration Tasks

Administration Tools

Instructions for Administering GlassFish 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.  Writing and Running JavaScript Clients to Monitor GlassFish Server

10.  Administering Life Cycle Modules

11.  Extending and Updating GlassFish Server

Part II Resources and Services Administration

12.  Administering Database Connectivity

13.  Administering EIS Connectivity

About EIS Connectivity

Administering Connector Connection Pools

To Create a Connector Connection Pool

To List Connector Connection Pools

To Connect to (Ping) or Reset (Flush) a Connector Connection Pool

To Update a Connector Connection Pool

To Delete a Connector Connection Pool

Administering Connector Resources

To Create a Connector Resource

To List Connector Resources

To Update a Connector Resource

To Delete a Connector Resource

Administering the Resource Adapter Configuration

To Create Configuration Information for a Resource Adapter

To List Resource Adapter Configurations

To Update a Resource Adapter Configuration

To Delete a Resource Adapter Configuration

Administering Connector Security Maps

To Create a Connector Security Map

To List Connector Security Maps

To Update a Connector Security Map

To Delete a Connector Security Map

Administering Connector Work Security Maps

To Create a Connector Work Security Map

To List Connector Work Security Maps

To Update a Connector Work Security Map

To Delete a Connector Work Security Map

Administering Administered Objects

To Create an Administered Object

To List Administered Objects

To Update an Administered Object

To Delete an Administered Object

14.  Administering Internet Connectivity

15.  Administering the Object Request Broker (ORB)

16.  Administering the JavaMail Service

17.  Administering the Java Message Service (JMS)

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

19.  Administering Transactions

Part III Appendixes

A.  Subcommands for the asadmin Utility

Index

Administering Administered Objects

Packaged within a connector module, an administered object provides specialized functionality for an application. For example, an administered object might provide access to a parser that is specific to the connector module and its associated EIS.

The following topics are addressed here:

To Create an Administered Object

Use the create-admin-object subcommand to create an administered object resource. When creating an administered object resource, name-value pairs are created, and the object is associated to a JNDI name.

Before You Begin

The resource adapter must be deployed before running this subcommand (jmsrar.rar).

  1. Create an administered object by using the create-admin-object(1) subcommand.

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

  2. (Optional) If needed, restart the server.

    Some properties require server restart. See Configuration Changes That Require Restart. If your server needs to be restarted, see To Restart a Domain.

Example 13-20 Creating an Administered Object

For this example, the javax.jms.Queue resource type is obtained from the ra.xml file. The JNDI name of the new administered object is jms/samplequeue.

asadmin> create-admin-object --restype javax.jms.Queue --raname jmsra
--description "sample administered object" --property Name=sample_jmsqueue jms/samplequeue
Command create-admin-object executed successfully

See Also

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

To List Administered Objects

Use the list-admin-object subcommand in remote mode to list the existing administered objects.

  1. Ensure that the server is running.

    Remote subcommands require a running server.

  2. List the administered objects by using the list-admin-objects(1) subcommand.

Example 13-21 Listing Administered Objects

This example lists the existing administered objects.

asadmin> list-admin-objects
jms/samplequeue
Command list-admin-objects executed successfully

See Also

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

To Update an Administered Object

Use the get and set subcommands to view and change the values of the administered objects properties.

  1. List the administered objects by using the list-admin-objects(1) subcommand.
  2. View the properties of the administered object by using the get(1) subcommand.

    For example:

    asadmin> get domain.resources.admin-object-resource.jms/samplequeue.* 
  3. Set the property of the administered object by using the set(1) subcommand.

    For example:

    asadmin> set domain.resources.admin-object-resource.jms/samplequeue.enabled=false
  4. (Optional) If needed, restart the server.

    Some properties require server restart. See Configuration Changes That Require Restart. If your server needs to be restarted, see To Restart a Domain.

To Delete an Administered Object

Use the delete-admin-object subcommand to delete an administered objects.

  1. List the administered objects by using the list-admin-objects(1) subcommand.
  2. If necessary, notify users that the administered object is being deleted.
  3. Delete an administered object by using the delete-admin-object(1) subcommand.

Example 13-22 Deleting an Administered Object

This example deletes the administered object with the JNDI name jms/samplequeue.

asadmin> delete-admin-object jms/samplequeue
Command delete-admin-object executed successfully

See Also

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