1 Reply Latest reply on Jan 9, 2013 6:50 AM by pbarrett

    Remote clustering with hotrod

    pbarrett

      I am trying to configure a hot rod client to connect to a remote cluster using Spring @Cacheable annotation.

       

      I have my cache-context.xml and hotrod-client.properties configured as below.

       

      cache-context.xml:

      {code}<bean id="cacheManager" class="org.infinispan.spring.provider.SpringRemoteCacheManagerFactoryBean" p:configuration-properties-file-location="/WEB-INF/hotrod-client.properties" />

                <bean class="a.b.c.webservice.rest.lookup.caching.CustomerCache" p:cacheManager-ref="cacheManager"/>

                <bean id="customerLookup" factory-bean="cacheManager" factory-method="getCache">

                 <constructor-arg value="customerLookup"/>

      </bean>{code}

      hotrod-client.properties:

      {code};infinispan.client.hotrod.server_list = 127.0.0.1:11222;{code}

       

       

      I am using Weblogic as an application server.

       

      When I deploy the project from eclipse I get an error:

       

      {code}Caused By: java.lang.NoSuchFieldError: _lifo

                at org.infinispan.client.hotrod.impl.transport.tcp.PropsKeyedObjectPoolFactory.<init>(PropsKeyedObjectPoolFactory.java:55)

                at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.start(TcpTransportFactory.java:95)

                at org.infinispan.client.hotrod.RemoteCacheManager.start(RemoteCacheManager.java:467)

                at org.infinispan.client.hotrod.RemoteCacheManager.<init>(RemoteCacheManager.java:233)

                at org.infinispan.client.hotrod.RemoteCacheManager.<init>(RemoteCacheManager.java:222){code}

       

      Any ideas?