我在创建DB2连接之前设置ClientAccountingInformation属性,以便进行日志记录。
this.properties.put("ClientAccountingInformation", "test");
lDbConection = DriverManager.getConnection(this.connectionString, this.properties);
但是每次使用此连接时我都需要设置一个不同的值,因为它来自连接池,它被不同的事务重用。
事实上,我需要的是:
等等......
答案 0 :(得分:0)
这是可能的:
properties.put("ClientAccountingInformation", "test 2");
lDbConnection.setClientInfo(properties);