Yes, you are completely right.
I just connect and disconnect jdbc connection from the session before
and after the request.
public static void reconnect(Session session) {
try {
session.reconnect();
threadSession.set(session);
} catch (HibernateException ex) {
throw new ScsException(ex);
}
}
public static Session disconnectSession(){
Session session = getSession();
try {
threadSession.set(null);
if (session.isConnected() && session.isOpen())
session.disconnect();
} catch (HibernateException ex) {
throw new ScsException(ex);
}
return session;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]