asadmin [asadmin-options] create-admin-object [--help]
[--target target]
--restype restype
[--classname classname]
--raname raname
[--enabled={true|false}]
[--description description]
[--property name=value[:name=value]*]
jndi_name
|
create-admin-object DRAFT |
| Previous | Next | Contents |
adds the administered object with the specified JNDI name for a resource adapter
Synopsis
asadmin [asadmin-options] create-admin-object [--help]
[--target target]
--restype restype
[--classname classname]
--raname raname
[--enabled={true|false}]
[--description description]
[--property name=value[:name=value]*]
jndi_name
Description
The create-admin-object subcommand creates the administered object
with the specified JNDI name and the interface definition for a resource
adapter.
This subcommand is supported in remote mode only.
Options
Options for the asadmin utility. For information about these
options, see the asadmin(1M) help page.
--help-?Displays the help text for the subcommand.
--targetSpecifies the target on which you are creating the administered
object. Valid values are as follows:
serverCreates the administered object for the default server instance
server and is the default value.
Creates the administered object for the named configuration.
Creates the administered object for every server instance in the cluster.
Creates the administered object for a particular server instance.
Note: The resource is always created for the domain as a whole, but the
|
--restypeSpecifies the interface definition for the administered object. The
resource type must be an interface definition that is specified in the
ra.xml file of the resource adapter.
--classnameSpecifies the class name of the administered object. Required if multiple administered objects use the same interface definition.
--ranameSpecifies the name of the resource adapter associated with this administered object.
--enabledSpecifies if this object is enabled. Default is true.
--descriptionText string describing the administered object.
--propertyDescription of the name/values pairs for configuring the resource.
Dependent on the resource adapter. For JMS properties, see
create-jms-resource(1)
for JMS destination resources.
Operands
JNDI name of the administered object to be created.
Examples
Example 1 Creating an Administered Object
In this example, jmsra is a system resource adapter with the admin
object interfaces, javax.jms.Queue and javax.jms.Topic.
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
Exit Status
subcommand executed successfully
error in executing the subcommand
See Also
| Previous | Next | Contents |
Copyright © 2019, Oracle and/or its affiliates. All rights reserved.
DRAFT