public static AtrilSession getSession(String sContext, String sUsr, String sPwd)
throws AuthenticationException, SecuritySystemException, IllegalStateException,PersistenceManagerException {
if (!bInitOK) throw new IllegalStateException("DAO was not properly initialized");
AtrilSession oSess = AuthenticationManagerFactory.getAuthenticationManager(oAtrilProperties).authenticateUser(sUsr, sPwd);
oSess.open(sContext);
oSess.connect();
oSess.autoCommit(false);
return oSess;
}
// --------------------------------------------------------------------------