
java
Get flash to fully experience Pearltrees
In a Java program, we sometimes need to make sure we close a resource after we’ve finished using it. Common examples are files, Hibernate Sessions, JDBC Connections, Statements and ResultSets. The database-related ones are particular important – if we don’t close them, we can be left with unclosed connections to the database. This means that we could eventually run out of connections. Sure, these objects are supposed to close their underlying resources when they’re garbage collected, but sometimes they don’t get a chance to (for example, if the JVM exits suddenly) and sometimes they don’t do it even though they’re supposed to (some dodgy JDBC drivers can do this – I once used one that would leave the underlying database connection open if you didn’t close the ResultSet – even if you closed the Connection object). Of course, I’m probably not telling you anything new here.
How to Close JDBC Resources Properly – Every Time | The Shine Technologies Blog
Leading-Edge Java Three Minutes to a Web Service Write a Web service in 15 lines of code with JAX-RPC 2.0 Early Access by Frank Sommers May 23, 2005 Page 1 of 3 >> Summary A key aim of JAX-RPC 2.0 (JSR 224) is to simplify Java Web service development. Currently in early draft review stage in the JCP, an early access JAX-RPC 2.0 reference implementation is available from the Java Web services community site on java.net.

