Oracle GlassFish Server 3.1 Section 1: asadmin Utility Subcommands
create-connector-connection-pool(1)
create-connector-security-map(1)
create-connector-work-security-map(1)
create-jdbc-connection-pool(1)
create-message-security-provider(1)
create-resource-adapter-config(1)
delete-connector-connection-pool(1)
delete-connector-security-map(1)
delete-connector-work-security-map(1)
delete-jdbc-connection-pool(1)
delete-message-security-provider(1)
delete-resource-adapter-config(1)
disable-http-lb-application(1)
disable-secure-admin-internal-user(1)
disable-secure-admin-principal(1)
enable-secure-admin-internal-user(1)
enable-secure-admin-principal(1)
list-connector-connection-pools(1)
list-connector-security-maps(1)
list-connector-work-security-maps(1)
list-message-security-providers(1)
list-resource-adapter-configs(1)
list-secure-admin-internal-users(1)
list-secure-admin-principals(1)
list-supported-cipher-suites(1)
unfreeze-transaction-service(1)
update-admin-server-coordinates(1)
update-admin-server-local-coordinates(1)
update-connector-security-map(1)
update-connector-work-security-map(1)
Oracle GlassFish Server 3.1 Section 1M: Utility Commands
Oracle GlassFish Server 3.1 Section 5ASC: GlassFish Server Concepts
- creates a reference to a resource
create-resource-ref [--help] [--target target] [--enabled={false|true}] reference_name
The create-resource-ref subcommand creates a reference from a cluster or an unclustered server instance to a previously created resource, for example, a JDBC resource created by using the create-jdbc-resource subcommand. This effectively results in the resource being made available in the JNDI tree of the instance or cluster.
The target instance or instances making up the cluster need not be running or available for this subcommand to succeed. If one or more instances are not available, they will receive the new resource the next time they start.
Note - A resource-ref can only be created for bindable resources, such as a jdbc-resource, connector-resource, admin-object-resource, mail-resource, custom-resource, or jndi-resource.
A jdbc-connection-pool or a connector-connection-pool are not referred to directly by applications. Instead, they are referred to through a jdbc-resource or connector-resource, respectively.
This subcommand is supported in remote mode only.
Displays the help text for the subcommand.
Specifies the target for which you are creating the resource reference. Valid targets are as follows:
Creates the resource reference for the default server instance. This is the default target.
Creates the resource reference for every server instance in the cluster.
Creates the resource reference for the named unclustered server instance.
Indicates whether the resource should be enabled. This value will take effect only if the resource is enabled at the global level. The default is true.
The name or JNDI name of the resource.
Example 1 Creating a Reference to a JMS Destination Resource
This example creates a reference to the JMS destination resource jms/Topic on the cluster Cluster1.
asadmin> create-resource-ref --target Cluster1 jms/Topic resource-ref jms/Topic created successfully. Command create-resource-ref executed successfully.
subcommand executed successfully
error in executing the subcommand