Jump to content


Smart Client - In process cache


  • Please log in to reply
3 replies to this topic

#1 Guest_geertschneider_*

Guest_geertschneider_*
  • Guests

Posted 11 May 2009 - 06:03 AM

Hi all,

I'm trying to setup NHibernate together with NCache. I want to use In Process caching.
On my local machine everything works fine. If I run the application on a machine on which NCache is not installed I get aa "Missing installation folder" - exception.

Next to the exe I put :

- CONFIG FILES :
client.ncconf & config.ncconf

This is the content of the config.nconf
<cache-config name="cdoCache" inproc="true">
<cleanup interval="60sec"/>
<log trace-errors="true" trace-debug="false" enabled="true"/>
<storage cache-size="200mb"/>
<eviction-policy default-priority="normal" eviction-ratio="10%" eviction-enabled="true"/>
<perf-counters enabled="true"/>
</cache-config>

- NCache DLL's
Alachisoft.NCacheExpress.Cache.dll
Alachisoft.NCacheExpress.Cluster.dll
Alachisoft.NCacheExpress.Common.dll
Alachisoft.NCacheExpress.Integrations.NHibernate.Cache.dll
Alachisoft.NCacheExpress.Management.dll
Alachisoft.NCacheExpress.Runtime.dll
Alachisoft.NCacheExpress.Serialization.dll
Alachisoft.NCacheExpress.Storage.dll
Alachisoft.NCacheExpress.Web.dll

- In the app.config I added

<ncache>
<add key="cacheName" value="cdoCache"/>
<add key="enableCacheException" value="true"/>
</ncache>

- I configured NHibernate to use Second level cache (works because I tried with an other provider and then it works correctly).

Any idea of what I forgot or did wrong ?


Thanks,
Geert

#2 Guest_Alex_*

Guest_Alex_*
  • Guests

Posted 12 May 2009 - 06:12 AM

Hi Geert,

Simply putting the assemblies and config files beside the .exe would not work.

You will need to install NCache on the machine where you want to run your application. That will register the NCache assemblies with the windows.

Let me know if you have any other questions.

Alex

#3 Guest_geertschneider_*

Guest_geertschneider_*
  • Guests

Posted 12 May 2009 - 07:29 AM

Hi Alex,

is there now workaround ? Deploying to the DLL's to the GAC ?

We distribute our application through ONE msi. We can not install ncache manually on all our client machines.

I do not need to run NCache as a service. I just want to use it to cache some reference data comming from NHibernate.

Geert

#4 Guest_Alex_*

Guest_Alex_*
  • Guests

Posted 13 May 2009 - 04:32 AM

Hi Geert,

NCache Client do not need to run any NCache Services. However the assemblies are needed to be registered with windows.

Please use the NCache Enterprise Edition 3.6.1 which includes the power shell scripts to install NCache remotely on a client machine, where you can customize this installation by just installing the required assemblies and excluding NCacheManager, NCacheMonitor, samples, documentation etc which are not required for an NCache client. You can also disable NCache service and NCache Bridge service on NCache Client machines as they are not required.

You can also go for command line installation option. See the Command Line Install in the NCache Installation Guide here;

http://www.alachisof...lationGuide.pdf

Let me know how it goes.

Alex




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users