This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I have problems in connecting to the Database using Datasource. Previously i was using VAJ3.5 there the connection to local UDB is working fine with "COM.ibm.db2.jdbc.app.DB2Driver". But now when i use the same driver iam getting the following exception while the Entity bean(BMP) is being loaded into the local test Environment. ERROR: [8/5/03 8:30:03:148 GMT+01:00] 4206deb DataSourcePro W CONM7002W: Could not find the property user on class COM.ibm.db2.jdbc.app.DB2Driver [8/5/03 8:30:03:273 GMT+01:00] 4206deb DataSourcePro W CONM7002W: Could not find the property password on class COM.ibm.db2.jdbc.app.DB2Driver [8/5/03 8:30:03:273 GMT+01:00] 4206deb DataSourcePro W CONM7002W: Could not find the property description on class COM.ibm.db2.jdbc.app.DB2Driver [8/5/03 8:30:03:273 GMT+01:00] 4206deb DataSourcePro W CONM7002W: Could not find the property databaseName on class COM.ibm.db2.jdbc.app.DB2Driver [8/5/03 8:30:03:289 GMT+01:00] 4206deb DataSourcePro X CONM7005E: The class (COM.ibm.db2.jdbc.app.DB2Driver) does not implement javax.sql.ConnectionPoolDataSource or javax.sql.XADataSource java.sql.SQLException: CONM7005E: The class (COM.ibm.db2.jdbc.app.DB2Driver) does not implement javax.sql.ConnectionPoolDataSource or javax.sql.XADataSource Please help me to sort out this problem. Thanks a lot in Anticipation.
Did you add db2 to the classpath for your EJB project? It's one of the predefined variables, but you need to explicitly include it. Otherwise, you get lots of classpath issues. Also, check whether the EJB project is set up to use the same server as the one that you set up the datasource on.
Thanks Jeanne and David for your interest. The problem is solved when i changed the DB2 driver to COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource Now it's working fine.