closing resource connections
Florian Weimer
fw at deneb.enyo.de
Tue Dec 23 20:17:54 UTC 2008
* Victor Cheung:
> is it recommended that we explicitly close all resource connections?
Yes.
> for example, database connections, web service connections, after we
> use them? (and even if we are using frameworks such as
> Spring/iBatis)
I don't know what special support J2EE has in this area. From what
I've seen, it relies heavily on object pooling, which means that
closing a resource likely returns it to the pool only (from where it
can be reused).
_______________________________________________
hotspot-gc-use mailing list
hotspot-gc-use at openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
More information about the hotspot-gc-dev
mailing list