Can anyone provide some sample code for this? I tried, but seemed to be blocked by $proxy objects or odd looking com.ibm.db2.jcc.b.b objects...
For example, this did not work for me:
java.sql.Connection conn = sqlMapClient.getCurrentConnection();
if (conn instanceof com.ibm.db2.jcc.DB2Connection)
{
com.ibm.db2.jcc.DB2Connection db2conn = (
com.ibm.db2.jcc.DB2Connection)conn;
db2conn.setDB2ClientApplicationInformation
("SomethingUsefulHere");
}
I also tried getting the DataSource 1st.
Thanks!
