Skip to content

Tag: db2

How to call a DB2 stored procedure passing a List as param?

Java version: Java1.8 JDBC: db2jcc4-11.1.1.1 Ant1.7 Websphere8.5 I am upgrading a service to allow for passing an array of currency codes (AA, BB, CC, DD) into a stored procedure. The NSP work has been completed and verified. Here is my code below. Mapper StringHandler During runtime, I am getting this error …

Connect DB2 with Java

How can I connect DB2 with Java in Eclipse? What are some step-by-step instructions? How can I add the classpath in Eclipse? Code snippet: On running the code, I got the following exceptions: Answer You need to correct the package name. To add .jar in your project, use menu Project → Properties → Java Build P…