Atomikos Forum

DB2 datasource within tomcat

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
grhwood Send private email
Wednesday, September 08, 2010
 
 
Very strange; could it be some caching effect somewhere in the Tomcat installation?
Guy Pardon Send private email
Saturday, September 11, 2010
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics