-
1. Re: infinispan as remote cache
sannegrinovero Jul 23, 2011 3:03 PM (in response to kullmann)1 of 1 people found this helpfulour 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.
-
2. Re: infinispan as remote cache
mircea.markus Jul 29, 2011 10:35 AM (in response to sannegrinovero)1 of 1 people found this helpfulour 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.