Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java stored procedures- how to get the connection

Status
Not open for further replies.

Nick23

Programmer
Sep 13, 2002
3
CA
I try to write java stored procedures, so as the docs say I extend COM.ibm.db2.app.StoredProc.
In order to get the current connection the docs say to call getConnection method of the supper.
But, the stored procedure method to be called MUST be declared static, so I end up with compilation errors - non-static method cannot be called from static context!

So how can I get the connection?

Thanks, Nick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top