asadmin [asadmin-options] create-jdbc-resource [--help]
--connectionpoolid connectionpoolid
[--enabled={false|true}]
[--description description]
[--property (property=value)[:name=value]*]
[--target target]
jndi_name
create-jdbc-resource |
Previous | Next | Contents |
creates a JDBC resource with the specified JNDI name
Synopsis
asadmin [asadmin-options] create-jdbc-resource [--help]
--connectionpoolid connectionpoolid
[--enabled={false|true}]
[--description description]
[--property (property=value)[:name=value]*]
[--target target]
jndi_name
Description
The create-jdbc-resource
subcommand creates a new JDBC resource.
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.
--connectionpoolid
The name of the JDBC connection pool. If two or more JDBC resource elements point to the same connection pool element, they use the same pool connection at runtime.
--enabled
Determines whether the JDBC resource is enabled at runtime. The default value is true.
--description
Text providing descriptive details about the JDBC resource.
--property
Optional attribute name/value pairs for configuring the resource.
--target
This option helps specify the target to which you are deploying. Valid
values are:
server
Deploys the component to the default server instance. This is the default value.
domain
Deploys the component to the domain.
Deploys the component to every server instance in the cluster.
Deploys the component to a particular server instance.
Note
|
The resource is always created for the domain as a whole, but the
|
Operands
The JNDI name of this JDBC resource.
Examples
Example 1 Creating a JDBC Resource
This example creates a JDBC resource named jdbc/DerbyPool
.
asadmin> create-jdbc-resource
--connectionpoolid sample_derby_pool jdbc/DerbyPool
Command create-jdbc-resource executed successfully.
Exit Status
subcommand executed successfully
error in executing the subcommand
See Also
Previous | Next | Contents |