1 Reply Latest reply on Dec 16, 2002 8:35 PM by Bela Ban

    using cache for application objects

    Leonardo Newbie

      I would like to know how to use jboss 3.x cache implementation with objects of my application. I found a package org.jboss.pool.cache that contains some interesting classes but I was unable to find any documentation about them. Thanks in advance

        • 1. Re: using cache for application objects
          Bela Ban Master

          Soon to come:

          Cache cache; // init somehow
          boolean sync_mode=true;
          boolean use_locking=true;

          // synchronous call, plus use locking
          cache.put("mykey", mySerializableObject, sync_mode, use_locking);

          // asynchronous by default, no locking
          cache.put("anotherkey", "Hello world");


          Cache cache; // init somehow
          // configures cache to be synchronous and locking

          // synchronous and uses locking because cache was configured so
          // by default
          cache.put("anotherkey", "Hello world");