Hi,
I have a NT service that uses NHibernate. I have tried to move hibernate-configuration to a separate config file, just like this post describes:
https://forum.hibernate.org/viewtopic.php?f=25&t=1001876but no luck, it doesn't work. Is this even possible under NHibernate when run under NT service?
My configs would be:
app.config
Code:
<hibernate-configuration configSource="hibernate.config"/>
hibernate.config
Code:
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.2">
<session-factory>
<property name="dialect">NHibernate.Dialect.Oracle10gDialectEx</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.OracleClientDriver</property>
<property name="connection.connection_string">Data Source=DATABASE;User ID=USER;Password=PASS;</property>
<property name="show_sql">true</property>
<property name='proxyfactory.factory_class'>NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</property>
</session-factory>
</hibernate-configuration>
Thank you for any ideas.
Zdeněk