In this case, we can build an AOP version of the Adapter pattern that will solve the immediate problem and provide a step towards a more organized, better-designed system.
In addition to importing the JDBC resource adapter, you also need to add two jars from your DB2 installation to your workspace, and put them on the resource adapter project build path.