A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Shanthi Murugeson:
yes, i have declared my connection variable as an instance variable.
infact all the variables in the program are instance variables.
SCJP, SCWCD, SCJWS, IBM 700,IBM 701, IBM 704, IBM 705, CA Clarity Technical<br /> <br /><a href="http://eddyleesinti.blogspot.com" target="_blank" rel="nofollow">http://eddyleesinti.blogspot.com</a>
Originally posted by Eddy Lee Sin Ti:
You can implements javax.servlet.SingleThreadModel to mark your servlet to use single threading model. This is not recommended and performance impact is huge when service method execution is long.
.
You can open and close the connection in the service method if the connection is managed by a connection pool. or else you can just leave it open to save creation time later
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|