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

    using cache for application objects

    leogsilv

      Hi,
      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
          belaban

          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");

          or

          Cache cache; // init somehow
          cache.configure("file:/home/bela/myCacheConfig.xml");
          // configures cache to be synchronous and locking

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


          Bela