Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
In my application from a web service we connect to DB2 using Spring. The DBprovider configured in config file is


In my code, my class inherits form Stored Procedure class

public class myclass: StoredProcedure

{ public myclass(IDbProvider databaseProvider) : base(databaseProvider, ProcedureName) { this.DeriveParameters();

........ }

My question: We want to get the Connection object in Spring , so that we can set DB2connection.ClientAccountingInformation property for reporting

http://www-01.ibm.com/support/knowledgecenter/SSEPGG_10.5.0/com.ibm.swg.im.dbclient.adonet.ref.doc/doc/DB2ConnectionClassClientAccountingInformationProperty.html?cp=SSEPEK_11.0.0%2F7-2-1-3-3-0-6-3-5

Please suggest ways to set this value in Spring. Any ideas are greatly appreciated

Links I referred
http://forum.springframework.net/showthread.php?4656-Use-web-config-connectionStrings
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900