NHibernate + AppFabric cache -
NHibernate + AppFabric cache -
i utilize appfabric nhibernate 2l cache provider.
i have installed appfabric cache service, configured cache cluster , 1 cache apart default one:
<datacache size="small"> <caches> <cache consistency="strongconsistency" name="nhibernate"> <policy> <eviction type="lru" /> <expiration defaultttl="10" isexpirable="true" /> </policy> </cache> <cache consistency="strongconsistency" name="default"> <policy> <eviction type="lru" /> <expiration defaultttl="10" isexpirable="true" /> </policy> </cache> </caches> <hosts> <host replicationport="22236" arbitrationport="22235" clusterport="22234" hostid="963417840" size="2047" leadhost="true" account="zeus\catalinp" cachehostname="appfabriccachingservice" name="zeus" cacheport="22233" /> </hosts> </datacache>
everything seems ok on cache provider side.
cache client's configuration, used in app.config, following:
<dcacheclient localcache ="true" deployment="simple"> <localcache isenabled="true" sync="timeoutbased" ttlvalue="300" /> <hosts> <host name="zeus" cacheport="22233" cachehostname="appfabriccachingservice"/> </hosts> </dcacheclient>
nothing special, mutual settings.
yet, when run applicacion, can see next output in debugger:
deadservercallback called, server uri: net.tcp://zeus:22233/appfabriccachingservice deadservercallback: matches server, cleaning pending requests sendmsgandwait: remote store operation failed: msgid = 1 executeapi: response null, msgid = 1
finally, application crashed next message:
"errorcode:cache::get : not contact cache service. contact administrator , refer product help documentation possible reasons."
the cache service seems correctly configured (i have succeeded connect through powershell commands), nhibernate configuration seem right well, yet nhibernate cannot connect cache service.
has experiences similar ?
thank you,
c.
the nhibernate velocity provider broken , not work appfabric. see this question details, , go here s1mm0t's provider appfabric.
nhibernate appfabric
Comments
Post a Comment