i want to let the db2 support the xa datasource,
my db2-xa-ds.xml is:
<xa-datasource>
<jndi-name>DB2DS</jndi-name>
<xa-datasource-class>COM.ibm.db2.jdbc.DB2XADataSource</xa-datasource-class>
<xa-datasource-property name="DatabaseName">account</xa-datasource-property>
<xa-datasource-property name="User">db2</xa-datasource-property>
<xa-datasource-property name="Password">db2</xa-datasource-property>
</xa-datasource>
the call sentence is:
DB2XADataSource ds = (DB2XADataSource)new InitialContext ().lookup ("java:/DB2DS");
but the wrong message when i run my program appear:
15:25:38,070 INFO [STDOUT] Exception in cmtbeanjava.lang.ClassCastException
and the db2java.zip is include in the directory:
\install_path\server\default\lib
who can tell me the reason.
thanks!!
I will wait for your answer online.
Who can tell me the wrong of the db2-xa-ds.xml.
thanks!