Announcement Announcement Module
Collapse

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions (http://www.springsource.org/extensions) project, this forum has been decommissioned in favour of Spring Extensions one at:
http://forum.springsource.org/forumdisplay.php?f=44

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Cheers,
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
See more
See less
Tangosol Coherence not working Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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, 10:23 AM.

  • #2
    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.

    Comment


    • #3
      What is that junk by "netinfog", totally rubbish.

      Comment


      • #4
        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!

        Comment

        Working...
        X