-
1. Re: DB2 datasource schema configuration help
braca Jan 31, 2014 2:58 AM (in response to jbosssankar)Hello,
in JBoss 7.1.1 with a normal datasource I got it working with:
<connection-url>jdbc:db2://10.0.0.112:52101/mydatabase:currentSchema=myschema;</connection-url>
This should also work in JBoss 5.1 with a xa-datasource.
-
2. Re: DB2 datasource schema configuration help
jbosssankar Feb 3, 2014 3:15 PM (in response to braca)I see the sample db2-xa-ds.xml in JCA directory doesn';t have <connection-url>
Here is the db2-xa-ds.xml from jca directory, I followed this file. Could you please send me an example how to use <connection-url>
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===================================================================== -->
<!-- -->
<!-- JBoss Server Configuration -->
<!-- Thanks to Horia Muntean <horia@bvb.ro> -->
<!-- ===================================================================== -->
<!-- $Id: db2-xa-ds.xml 77479 2008-08-26 10:33:09Z alex.loubyansky@jboss.com $ -->
<datasources>
<!--
XADatasource for DB2 V8.1 (app driver)
copy $db2_install_dir/java/db2java.zip into $jboss_install_dir/server/default/lib
-->
<xa-datasource>
<jndi-name>DB2XADS</jndi-name>
<!-- uncomment to enable interleaving <interleaving/> -->
<isSameRM-override-value>false</isSameRM-override-value>
<xa-datasource-class>COM.ibm.db2.jdbc.DB2XADataSource</xa-datasource-class>
<xa-datasource-property name="DatabaseName">yout_database_name</xa-datasource-property>
<xa-datasource-property name="User">your_user</xa-datasource-property>
<xa-datasource-property name="Password">your_password</xa-datasource-property>
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<metadata>
<type-mapping>DB2</type-mapping>
</metadata>
</xa-datasource>
</datasources>
Thanks