Results 1 to 4 of 4

Thread: Tangosol Coherence not working

  1. #1
    Join Date
    May 2008
    Posts
    3

    Default 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:

    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:coherence="http://www.springmodules.org/schema/coherence"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...-beans-2.5.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schem...ontext-2.5.xsd
    http://www.springframework.org/schema/tx http://www.springframework.org/schem...ing-tx-2.5.xsd
    http://www.springmodules.org/schema/coherence http://www.springmodules.org/schema/cache/springmodules-tangosol.xsd">

    <coherence:config failQuietly="false"/>
    <bean id="entityManagerFactory"
    class="org.springframework.orm.jpa.LocalContainerE ntityManagerFactoryBean">
    <property name="persistenceUnitName" value="UserProfile"/>
    <property name="dataSource" ref="dataSource"/>

    <property name="jpaVendorAdapter">
    <bean class="org.springframework.orm.jpa.vendor.Hibernat eJpaVendorAdapter">
    <property name="showSql" value="true" />
    <property name="generateDdl" value="false" />
    <property name="databasePlatform" value="org.hibernate.dialect.Oracle10gDialect"/>
    </bean>
    </property>
    <property name="jpaProperties">
    <props>
    <prop key="hibernate.jdbc.batch_size">100</prop>
    </props>
    </property>
    </bean>

    <bean id="dataSource"
    class="org.springframework.jdbc.datasource.DriverM anagerDataSource">
    </bean>

    <bean id="transactionManager"
    class="org.springframework.orm.jpa.JpaTransactionM anager" >
    <property name="entityManagerFactory" ref="entityManagerFactory" />
    <property name="dataSource" ref="dataSource"/>
    </bean>

    <!-- <bean id="cacheManager"
    class="org.springmodules.cache.provider.jboss.Jbos sCacheManagerFactoryBean">
    <!-- Optional properties -->
    <!-- <property name="configLocation" value="classpath:org/springmodules/samples/cache-service.xml" />
    </bean> -->

    <!-- <bean id="cacheProviderFacade"
    class="org.springmodules.cache.provider.tangosol.C oherenceFacade">
    <property name="cacheManager" ref="cacheManager" />
    </bean> -->

    <bean id="serviceBean" class="com.test.coherence.spring.SpringServiceBean ">
    <property name="dao" ref="userDAO" />
    </bean>
    <bean id="userDAOTarget" class="com.test.coherence.spring.UserDAO">
    <property name="emf" ref="entityManagerFactory" />
    </bean>

    <coherenceroxy id="userDAO" refId="userDAOTarget">
    <coherence:caching methodName="getUserByID" cacheName="UPS-com.test.coherence.spring.UserCache"/>
    </coherenceroxy>

    </beans>"

    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
    Last edited by pckeyan; May 9th, 2008 at 09:23 AM.

  2. #2
    Join Date
    May 2008
    Posts
    3

    Smile good idea,i support the landlord

    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 "Monsoon Shower" 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.
    please go wow goldwith me

  3. #3
    Join Date
    Nov 2007
    Posts
    1

    Default

    What is that junk by "netinfog", totally rubbish.

  4. #4
    Join Date
    Jul 2010
    Posts
    3

    Default

    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •