juflo
11-08-2007, 12:39 PM
Hi all
I was looking for a way for canceling a long-run query. I've first thought that it was not possible easily.
Then, I look into OracleCommand (yes, I'm using Oracle, through NHibernate) and see that there was a Cancel() method.
Then I was also hapilly surprised that there was a CancelQuery() on NHibernate.ISession.
So, the question is, is there a way to call one of these methods ?
Btw, I'm using NHibernateTemplate and TransactionInterceptor.
I will try the following for testing :
SessionFactoryUtils.GetSession(...).CancelQuery()
What do you think about creating an easy way for this in Spring ? Maybe by cancelling the current transaction (smth on TransactionInterceptor) ?
Thx.
I was looking for a way for canceling a long-run query. I've first thought that it was not possible easily.
Then, I look into OracleCommand (yes, I'm using Oracle, through NHibernate) and see that there was a Cancel() method.
Then I was also hapilly surprised that there was a CancelQuery() on NHibernate.ISession.
So, the question is, is there a way to call one of these methods ?
Btw, I'm using NHibernateTemplate and TransactionInterceptor.
I will try the following for testing :
SessionFactoryUtils.GetSession(...).CancelQuery()
What do you think about creating an easy way for this in Spring ? Maybe by cancelling the current transaction (smth on TransactionInterceptor) ?
Thx.