|
|
Tangosol Coherence not working
HI,
I am trying to use the Declarative Caching Services with Coherence and used the Dev2Dev article on the same to try it out. But after set up I happen to see that everytime a call is posted to the Hibernate to load the object. Please find below the config file:
lt;beans xmlns=quot;schema/beansquot;
xmlns:xsi=quot;2001/XMLSchema-instancequot;
xmlns:context=quot;schema/contextquot;
xmlns:tx=quot;schema/txquot;
xmlns:coherence=quot;schema/coherencequot;
xsi:schemaLocation=quot;schema/beans schem...-beans-2.5.xsd
schema/context schem...ontext-2.5.xsd
schema/tx schem...ing-tx-2.5.xsd
schema/coherence schema/cache/springmodules-tangosol.xsdquot;gt;
lt;coherence:config failQuietly=quot;falsequot;/gt; lt;bean id=quot;entityManagerFactoryquot; class=quot;org..orm.jpa.LocalContainerE ntityManagerFactoryBeanquot;gt; lt;property name=quot;persistenceUnitNamequot; value=quot;UserProfilequot;/gt; lt;property name=quot;dataSourcequot; ref=quot;dataSourcequot;/gt; lt;property name=quot;jpaVendorAdapterquot;gt; lt;bean class=quot;org..orm.jpa.vendor.Hibernat eJpaVendorAdapterquot;gt; lt;property name=quot;showSqlquot; value=quot;truequot; /gt; lt;property name=quot;generateDdlquot; value=quot;falsequot; /gt; lt;property name=quot;databasePlatformquot; value=quot;org.hibernate.dialect.Oracle10gDialectquot;/gt; lt;/beangt; lt;/propertygt; lt;property name=quot;jpaPropertiesquot;gt; lt;propsgt; lt;prop key=quot;hibernate.jdbc.batch_sizequot;gt;100lt;/propgt; lt;/propsgt; lt;/propertygt; lt;/beangt; lt;bean id=quot;dataSourcequot; class=quot;org..jdbc.datasource.DriverM anagerDataSourcequot;gt; lt;/beangt;
lt;bean id=quot;transactionManagerquot; class=quot;org..orm.jpa.JpaTransactionM anagerquot; gt; lt;property name=quot;entityManagerFactoryquot; ref=quot;entityManagerFactoryquot; /gt; lt;property name=quot;dataSourcequot; ref=quot;dataSourcequot;/gt; lt;/beangt; lt;!-- lt;bean id=quot;cacheManagerquot; class=quot;org.springmodules.cache.provider.jboss.Jbos sCacheManagerFactoryBeanquot;gt; lt;!-- Optional properties --gt; lt;!-- lt;property name=quot;configLocationquot; value=quot;classpath rg/springmodules/samples/cache-service.xmlquot; /gt;
lt;/beangt; --gt;
lt;!-- lt;bean id=quot;cacheProviderFacadequot; class=quot;org.springmodules.cache.provider.tangosol.C oherenceFacadequot;gt; lt;property name=quot;cacheManagerquot; ref=quot;cacheManagerquot; /gt;
lt;/beangt; --gt; lt;bean id=quot;serviceBeanquot; class=quot;com.test.coherence.spring.SpringServiceBean quot;gt; lt;property name=quot;daoquot; ref=quot;userDAOquot; /gt; lt;/beangt; lt;bean id=quot;userDAOTargetquot; class=quot;com.test.coherence.spring.UserDAOquot;gt; lt;property name=quot;emfquot; ref=quot;entityManagerFactoryquot; /gt; lt;/beangt; lt;coherenceroxy id=quot;userDAOquot; refId=quot;userDAOTargetquot;gt; lt;coherence:caching methodName=quot;getUserByIDquot; cacheName=quot;UPS-com.test.coherence.spring.UserCachequot;/gt; lt;/coherenceroxygt;
lt;/beansgt;quot;
I have commented the CacheManager and CacheFacade entries as I could not locate the CoherenceCacheManager in SpringModules.jar.
JPA entity also uses the same UPS- as a region name. Please help me in fixing this issue.
Thanks in Advance
Karthik
i support the landlord itgo for me think!Remember these are averages, and the Southwest has been in a drought for some time. Old timers in Prescott will tell you how almost every afternoon in July and August they got their quot;Monsoon Showerquot; almost like clockwork. They still get quite frequent short showers but for the last few years they have not been as regular.Prescott is a beautiful place, but unfortunately has changed a lot in the past twenty years or so. There is not a lot of work there, and what is there is mostly retail and service related. or wow gold is good There has been a lot of West Coast retirement therehi,the wow gold is good,and after school often play wow gold To anyone coming from the East or South, these showers will really seem insignificant, and actually quite welcome as the afternoon temperature climbs.
What is that junk by quot;netinfogquot;, totally rubbish.
Hello Karthik
I know it's an old post.But did you get any solution for this issue? I am having exactly similar configuration and not able to use spring caching. Thanks! |
|