<!DOCTYPE REFENTRY PUBLIC "-//Sun Microsystems//DTD DocBook V3.0-Based SolBook Subset V2.0//EN" [
<!--ArborText, Inc., 1988-1999, v.4002-->
<!ENTITY metainfo SYSTEM "metainfo.sgm">
<!ENTITY options-common SYSTEM "options-common.sgm">
<!ENTITY synopsis-common SYSTEM "synopsis-common.sgm">
<!ENTITY % commonents SYSTEM "smancommon.ent">
%commonents;
<!ENTITY % booktitles SYSTEM "booktitles.ent">
%booktitles;
<!ENTITY Dash "&ndash;">
]>
<?Pub UDT _bookmark _target>
<?Pub EntList brvbar bull cross dash diam diams frac12 frac13 frac14 hellip
 laquo lArr loz mdash nabla ndash para pound rArr raquo sect yen ne>
<?Pub Inc>
<refentry id="create-jdbc-resource-1">
<refmeta><refentrytitle>create-jdbc-resource</refentrytitle><manvolnum>1</manvolnum>&metainfo;
</refmeta>
<refnamediv><indexterm><primary sortas="create-jdbc-resource">create-jdbc-resource &mdash;
creates a JDBC resource with the specified JNDI name</primary></indexterm>
<indexterm><primary sortas="creates a JDBC resource with the specified JNDI name">
creates a JDBC resource with the specified JNDI name &mdash; create-jdbc-resource
</primary></indexterm><refname>create-jdbc-resource</refname><refpurpose>
creates a JDBC resource with the specified JNDI name</refpurpose></refnamediv>
<refsynopsisdiv><title>&synp-tt;</title>
<cmdsynopsis><command>create-jdbc-resource</command>&synopsis-common;
<arg>&Dash;&Dash;target <replaceable>target</replaceable></arg><arg choice="plain">&Dash;&Dash;connectionpoolid <replaceable>
id</replaceable></arg><arg>&Dash;&Dash;enabled=<replaceable>true</replaceable></arg>
<arg>&Dash;&Dash;description <replaceable>text</replaceable></arg><arg><option
role="nodash">&Dash;&Dash;property (<replaceable>name</replaceable>=<replaceable>
value</replaceable>)[:<replaceable>name</replaceable>=<replaceable>value</replaceable>]*
</option></arg><arg choice="plain"><replaceable>jndi_name</replaceable></arg>
</cmdsynopsis></refsynopsisdiv>
<refsect1><title>&desc-tt;</title>
<para>The <command>create-jdbc-resource</command> command creates a new JDBC
resource. This command is supported in remote mode only. </para>
</refsect1>
<refsect1><title>&opts-tt;</title>
<variablelist termlength="medium">&options-common;
<varlistentry><term><option role="nodash">&Dash;&Dash;target</option></term>
<listitem><para>This option helps specify the target to which you are deploying.
Valid values are: <itemizedlist>
<listitem><para><literal>server</literal>, which deploys the component to
the default server instance. This is the default value.</para>
</listitem><?Pub Caret>
<listitem><para><literal>domain</literal>, which deploys the component to
the domain.</para>
</listitem>
<listitem><para><replaceable>cluster_name</replaceable>, which deploys the
component to every server instance in the cluster.</para>
</listitem>
<listitem><para><replaceable>instance_name</replaceable>, which deploys the
component to a particular sever instance.</para>
</listitem>
</itemizedlist></para>
<para>&se-ee-only;</para>
</listitem></varlistentry>
<varlistentry><term><option role="nodash">&Dash;&Dash;connectionpoolid</option></term>
<listitem><para>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. </para>
</listitem></varlistentry>
<varlistentry><term><option role="nodash">&Dash;&Dash;enabled</option></term>
<listitem><para>Determines whether the JDBC resource is enabled at runtime.
The default value is true.</para>
</listitem></varlistentry>
<varlistentry><term><option role="nodash">&Dash;&Dash;description</option></term>
<listitem><para>Text providing descriptive details about the JDBC resource.
</para>
</listitem></varlistentry>
<varlistentry><term><option role="nodash">&Dash;&Dash;property</option></term>
<listitem><para>Optional attribute name/value pairs for configuring the resource. 
</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&oper-tt;</title>
<variablelist termlength="medium">
<varlistentry><term><replaceable>jndi_name</replaceable></term><listitem>
<para>The JNDI name of this JDBC resource.</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&exam-tt;</title>
<example>
<title>Using the create-jdbc-resource command</title>
<screen>asadmin> <userinput>create-jdbc-resource --user admin --passwordfile passwords.txt --connectionpoolid sample_derby_pool jdbc/DerbyPool
</userinput>
Command create-jdbc-resource executed successfully.</screen>
</example>
</refsect1>
<refsect1><title>&exit-tt;</title>
<variablelist termlength="medium">
<varlistentry><term>0</term><listitem><para>command executed successfully
</para>
</listitem></varlistentry>
<varlistentry><term>1</term><listitem><para>error in executing the command
</para>
</listitem></varlistentry>
</variablelist></refsect1>
<refsect1><title>&also-tt;</title>
<para><link linkend="delete-jdbc-resource-1"><citerefentry><refentrytitle>
delete-jdbc-resource</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>, <link
linkend="list-jdbc-resources-1"><citerefentry><refentrytitle>list-jdbc-resources
</refentrytitle><manvolnum>1</manvolnum></citerefentry></link></para>
</refsect1>
</refentry>
<?Pub *0000005255>
