We are facing database connectivity issue with NHibernate.

 

Can we invoke NHibernate reinitialize from GUI?

Can we write some code for NHibernate to auto-recover the connections? 

We gave a code in place (written below), but not sure why it is not working.

 

 Error details:

NHibernate.ADOException: Could not close 
Oracle.DataAccess.Client.OracleConnection connection ---> 
Oracle.DataAccess.Client.OracleException ORA-03114: not connected to ORACLE  
 at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 
errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* 
pOpoSqlValCtx, Object src, String procedure, Boolean bCheck) 

  

if (sl != null && (!sl.IsOpen || sl.Connection.State == System.Data.
ConnectionState.Closed)))

{

if (getSessionFactory(name, out sf))

{

StatefullMap[name] = sl = sf.OpenSession();

}

}

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to nhibernate-development+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to