2 Replies Latest reply on Jul 29, 2011 10:35 AM by Mircea Markus

    infinispan as remote cache

    André Kullmann Newbie

      Hello,

       

      our application is deployed on an glassfish server. Now we want to use infinispan as cache some data. In first step we want to use infinispan just as remote cache, so we use the hotrod client to connect to the cache grid. But the hotrod client doesn't support transactions. Also we are missing some bulk operations ( get( Set<?> ), ... ), and we hope that is it possible to create some custom commands for behavior. But hotrod doesn't support :-(

      Why we want to use infinispan just as remote cache ? We just want to separate the application and cache resources ( cpu, mem, ... ). I think if we include infinispan into the glassfish and just use the api this will resolve the problems, but is it possible to configue the glassfish node to just be a client, don't use the memory as cache ?

       

      Thanx,

      André

        • 1. Re: infinispan as remote cache
          Sanne Grinovero Master

          our application is deployed on an glassfish server. Now we want to use infinispan as cache some data. In first step we want to use infinispan just as remote cache, so we use the hotrod client to connect to the cache grid. But the hotrod client doesn't support transactions. Also we are missing some bulk operations ( get( Set<?> ), ... ), and we hope that is it possible to create some custom commands for behavior. But hotrod doesn't support :-(

          you can have something very similar to bulk operations by using the async methods: send out a number of async get operations for each key you need, then wait to have received all of them.

          but is it possible to configue the glassfish node to just be a client, don't use the memory as cache ?

          Not without using Hot Rod.

          You could have your local node store a limited amount of data by using Virtual Nodes, and setting up your local node to be much smaller than the main data nodes; in this case it would be fully part of the grid, but having a minor overhead.

          1 of 1 people found this helpful
          • 2. Re: infinispan as remote cache
            Mircea Markus Master

            our application is deployed on an glassfish server. Now we want to use infinispan as cache some data. In first step we want to use infinispan just as remote cache, so we use the hotrod client to connect to the cache grid. But the hotrod client doesn't support transactions. Also we are missing some bulk operations ( get( Set<?> ), ... ),

            There is a workaround for using transaction over hotrod described here: http://community.jboss.org/wiki/WorkaroundForSupportingTxOverHotrod

            You can also enhance hotrod to support other operations in similar way.

            1 of 1 people found this helpful