You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Emmanuel Dupont <em...@jwaretechnologies.com> on 2003/03/13 15:20:56 UTC
Multiples jdbc-connection-descriptor ??
All,
I would like to have different <jdbc-connection-descriptor> declaration for
different jcd-alias. But each time I try to put a second one, I have the
error in websphere : "The markup in the document following the root element
must be well formatted".
I don't understand ?? I also wonder how to call the specific jcd-alias in
the source code??
Tx !
Here is my repository_database.xml:
<jdbc-connection-descriptor
jcd-alias="One"
default-connection="true"
platform="Db2"
jdbc-level="1.0"
driver="COM.ibm.db2.jdbc.app.DB2Driver"
protocol="jdbc"
subprotocol="db2"
dbalias="blabla"
username="blabla"
password="blabla"
batch-mode="false"
>
<connection-pool
maxActive="21"
validationQuery="" />
<sequence-manager
className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
<attribute attribute-name="grabSize" attribute-value="20"/>
</sequence-manager>
</jdbc-connection-descriptor>
<jdbc-connection-descriptor
jcd-alias="Two"
default-connection="false"
platform="Db2"
jdbc-level="1.0"
driver="COM.ibm.db2.jdbc.app.DB2Driver"
protocol="jdbc"
subprotocol="db2"
dbalias="blabla"
username="blabla"
password="blabla"
batch-mode="false"
>
<connection-pool
maxActive="21"
validationQuery="" />
<sequence-manager
className="org.apache.ojb.broker.util.sequence.SequenceManagerHighLowImpl">
<attribute attribute-name="grabSize" attribute-value="20"/>
</sequence-manager>
</jdbc-connection-descriptor>