我要在 Eclipse Mars 中使用 JBoss AS 6.x ,我要使用连接 DB2连接池。 我已经阅读到我需要一个具有以下配置的文件,例如 mydatasources-ds.xml :
<xa-datasource>
<jndi-name>jdbc/mybd</jndi-name>
<use-java-context>false</use-java-context>
<track-connection-by-tx>true</track-connection-by-tx>
<xa-datasource-class>com.ibm.db2.jcc.DB2XADataSource</xa-datasource-class>
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.DB2ExceptionSorter</exception-sorter-class-name>
<xa-datasource-property name="ServerName">thedbserver</xa-datasource-property>
<xa-datasource-property name="PortNumber">50001</xa-datasource-property>
<xa-datasource-property name="DatabaseName">MYBD</xa-datasource-property>
<xa-datasource-property name="DriverType">4</xa-datasource-property>
<xa-datasource-property name="User">myuser</xa-datasource-property>
<xa-datasource-property name="Password">mypwd</xa-datasource-property>
<xa-datasource-property name="DriverType">4</xa-datasource-property>
<check-valid-connection-sql>SELECT * FROM ACC.SETTINGS 1=2</check-valid-connection-sql>
<user-name>myuser</user-name>
<password>mypwd</password>
<min-pool-size>8</min-pool-size>
<max-pool-size>32</max-pool-size>
<blocking-timeout-millis>10000</blocking-timeout-millis>
<type-mapping>DB2</type-mapping>
<no-tx-separate-pools/>
</xa-datasource>
但是,¿¿我必须把那个文件放在哪里? 谢谢