* If the session has been marked as dirty, it will be saved. This may save partial changes in the case of a typical
* <code>try { ... } finally { ... }</code> approach - if this is a problem, ensure you revert changes when an
* exception occurs.
+ * <b>can throw RuntimeException</b>
*/
public void close()
{
}
}
+ public void closeQuietly()
+ {
+ try
+ {
+ this.close();
+ }
+ catch ( RuntimeException e )
+ {
+ log.warn( "ignore Runtime exception while closing: {}", e.getMessage() );
+ }
+ }
+
public void markDirty()
{