Atomikos Forum |
|
Hi,
First of all, thank you for this wonderfully piece of software. Atomikos will definitely in my checklist for next project. I only have a small question on configuring DB2 datasource in tomcat. I've successfully configured Mysql datasource in tomcat 6 and it worked like a charm with JPA and Hibernate. But when i change the database to DB2 with this configuration: <Resource name="jdbc/testDataSource" uniqueResourceName="jdbc/testDataSource" auth="Container" type="com.atomikos.jdbc.AtomikosDataSourceBean" factory="com.atomikos.tomcat.BeanFactory" maxPoolSize="10" xaDataSourceClassName="com.ibm.db2.jcc.DB2XADataSource" xaProperties.serverName="172.18.0.200" xaProperties.portNumber="50000" xaProperties.databaseName="earth" xaProperties.user="db2admin" xaProperties.password="x" xaProperties.driverType="4" /> and Atomikos throws an exception: Caused by: com.atomikos.beans.PropertyException: no writeable property 'port' in class 'com.ibm.db2.jcc.DB2XADataSource' I dont know where the port property comes from. I only specify the portNumber property like in Mysql datasource. Your help is much appreciated. Thank you |