If you want something you never had do something which you had never done
OCUP UML fundamental and ITIL foundation
If you want something you never had do something which you had never done
OCUP UML fundamental and ITIL foundation
RaviNada Kiran wrote:what i was expecting is that DBCP from Apache has the ability to close the connection for useven if we didn't close .
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Relying on this still causes a connection leak because it doesn't happen right away
If you want something you never had do something which you had never done
It doesn't happen when you are finished with the connection. It *might* happen when the pool decides to do so.RaviNada Kiran wrote:Can you please tell what do you mean by "it doesn't happen right away"Thanks in advance .
OCUP UML fundamental and ITIL foundation
If you want something you never had do something which you had never done
RaviNada Kiran wrote:can you please tell me what are the conditions on which the the container decides to return the Connection instance to the pool .
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:
RaviNada Kiran wrote:can you please tell me what are the conditions on which the the container decides to return the Connection instance to the pool .
They aren't specified and might not be deterministic. I'm having trouble picturing why you need to know this. If you always close your connections, this is never a problem.
OCUP UML fundamental and ITIL foundation
Jan Cumps wrote:It's better to create a new topic when you want to discuss a problem not related to the OP subject. (ah - you did that already)
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|