I guess you've all been here, so can you answer this?
you have do a 'finally' to ensure you close the connection/release it back
to the pool.
In the controller tier this is easy, get the connection in the
Filter/RequestProcessor/Action when whatever returns you can finally close
it.
However
, try-catch-finally, connections
I guess you've all been here, so can you answer this?
you have do a 'finally' to ensure you close the connection/release it back
to the pool.
In the controller tier this is easy, get the connection in the
Filter/RequestProcessor/Action when whatever returns
[EMAIL PROTECTED]
To: Struts List [EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 10:14 AM
Subject: [OT] data layer, try-catch-finally, connections
I guess you've all been here, so can you answer this?
you have do a 'finally' to ensure you close the connection/release it
back
to the pool
OK, so Java isn't my first language, busted...
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 10:25 AM
Subject: Re: [OT] data layer, try-catch-finally, connections
Setting the conn, rs, and s pointers to null in this method
Everything is pass by value, even pointers :-).
David
OK, so Java isn't my first language, busted...
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 10:25 AM
Subject: Re: [OT] data layer, try-catch-finally, connections
5 matches
Mail list logo