Hi Guys ,
I am facing a strage problem with nHibernate. The command timeout simply
does not throw an exception.
Below is my nHibernate config,
<session-factory>
<property
name="connection.driver_class">NHibernate.Driver.OracleDataClientDriver</property>
<property name="dialect">NHibernate.Dialect.Oracle10gDialect</property>
<property
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.connection_string">Data
Source=DLN01110_XRAY_APP;Persist Security Info=True;User
ID=XRAY_RW;Password=XRAY_RW;</property>
<property name="show_sql">false</property>
<property name="adonet.batch_size">0</property>
<property name="command_timeout">1</property>
</session-factory>
I also set the time out in the code ,
cfg.SetProperty("command_timeout", "1");
Put in app settiing
<appSettings >
<add key="CommandTimeout" value="1" />
but no matter what it simply does not raise the time out exception.
Please let me know of anything I am missing out.
Appreciate any assistance .. its been very frustrating.
Thanks,
Sridhar
On Saturday, June 16, 2012 2:47:34 AM UTC+5:30, Finn Nielsen wrote:
> Hi all,
>
> We are using NHibernate 3.1 with FluentNHibernate 1.2.
>
> We are configuring the session factory fluently and setting the
> adonet.batch_size property. Today I had the need to increase the
> command timeout for analysis purposes, but noticed that no matter what
> I set the command_timeout property to, then NHibernate ignored it and
> kept with the default 30 sec command timeout.
>
> After a long while I disabled the batch size property (out of
> desperation), and then the command timeout worked like a charm. But as
> soon as I enabled the batching then the command timeout is stuck at 30
> sec default.
>
> Is it normally known that NHibernate does not allow combining batching
> with command timeout? and if yes, why?
>
> Any comments are appreciated. :)
>
> Sign. FiNN
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.