Hello everyone, I hope someone can help me. I'm trying to enable caching with NHibernate, but since I'm using Castle NHibernate Integration Configuration, the config file is not quite the same as using only NHibernate, and nothing I have tried so far is working. Can you give me a hint or point me in the right direction?
I have provided my sample configuration file. If there are any version prerequisites for NHibernate caching, please point them out as I'm using NHibernate 1.0 (Castle.Facilities.NHibernateIntegration.dll v1.0.0.0 + Castle.Windsor.dll v1.0.0.2 + NHibernate.dll v 1.0.1.0) on some project and NHibernate 2.1 (Castle.Facilities.NHibernateIntegration.dll v1.0.3.0 + Castle.Windsor.dll v1.0.3.0 + NHibernate.dll v 2.1.2.4000) on others. Thanks for your time! Alexandre Payette C# Web Developer 20-20 Technologies Email: [email protected]<mailto:[email protected]> Website: http://www.2020technologies<http://www.2020technologies.com/> [cid:[email protected]] The content of this message is strictly confidential and is intended for the exclusive use of the addressee. Any unauthorized distribution and copying of this communication is strictly forbidden. If you have received said communication by error, please delete it immediately. 20-20 Technologies Inc. believes that this E-mail and its attachments were free of any virus, worm, Trojan horse, and/or malicious code when sent. However, by reading this message and opening any attachments, the addressee accepts full responsibility for taking protective and remedial action about viruses and other defects. -- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
<<inline: image001.gif>>
<?xml version="1.0" encoding="utf-8" ?>
<castle>
<facilities>
<facility id="nhibernatefacility"
type="Castle.Facilities.NHibernateIntegration.NHibernateFacility,
Castle.Facilities.NHibernateIntegration">
<factory id="sessionFactoryProducts">
<settings>
<item
key="connection.provider">NHibernate.Connection.DriverConnectionProvider</item>
<item
key="connection.driver_class">NHibernate.Driver.SqlClientDriver</item>
<item
key="connection.connection_string_name">ConnectionStringProducts</item>
<item key="dialect">NHibernate.Dialect.MsSql2000Dialect</item>
<item key="default_schema">PRODUCTS.dbo</item>
<item key="show_sql">false</item>
<item
key="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle</item>
</settings>
<resources>
<resource
name="nHibernate/MyCompany.MyNamespace.Model.Product.hbm.xml" />
<!-- many other resources removed for clarity -->
</resources>
</factory>
<factory id="sessionFactoryDesigns" alias="sessionFactoryDesign">
<settings>
<item
key="connection.provider">NHibernate.Connection.DriverConnectionProvider</item>
<item
key="connection.driver_class">NHibernate.Driver.SqlClientDriver</item>
<item
key="connection.connection_string_name">ConnectionStringDesigns</item>
<item key="dialect">NHibernate.Dialect.MsSql2000Dialect</item>
<item key="default_schema">DESIGNS.dbo</item>
<item key="show_sql">false</item>
<item
key="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle</item>
</settings>
<resources>
<resource
name="nHibernate/MyCompany.MyNamespace.Model.Design.hbm.xml" />
<!-- many other resources removed for clarity -->
</resources>
</factory>
<factory id="sessionFactoryStats" alias="sessionFactoryStats">
<settings>
<item
key="connection.provider">NHibernate.Connection.DriverConnectionProvider</item>
<item
key="connection.driver_class">NHibernate.Driver.SqlClientDriver</item>
<item
key="connection.connection_string_name">ConnectionStringStats</item>
<item key="dialect">NHibernate.Dialect.MsSql2000Dialect</item>
<item key="default_schema">STATS.dbo</item>
<item key="show_sql">false</item>
<item
key="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle</item>
</settings>
<resources>
<resource
name="nHibernate/MyCompany.MyNamespace.Model.Statistic.hbm.xml" />
<!-- many other resources removed for clarity -->
</resources>
</factory>
</facility>
<facility
id="atm"
type="Castle.Facilities.AutomaticTransactionManagement.TransactionFacility,
Castle.Facilities.AutomaticTransactionManagement" />
</facilities>
<components>
<component id="DesignMgr" type="MyCompany.MyNamespace.Managers.DesignMgr,
MyNamespace.Managers" />
<component id="StatisticMgr"
type="MyCompany.MyNamespace.Managers.StatisticMgr, MyNamespace.Managers" />
<component id="ProductMgr" type="MyCompany.MyNamespace.Managers.ProductMgr,
MyNamespace.Managers" />
<!-- many other components removed for clarity -->
</components>
</castle>
