Oracle GlassFish Server 3.0.1 Administration Guide

ProcedureTo 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 Server Restart. If your server needs to be restarted, see To Restart a Domain.


Example 15–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/samplequeueCommand 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.