1 Reply Latest reply on Dec 2, 2009 4:44 AM by Galder Zamarreño

    Is it possible to access cache inside CacheLoader.put() meth

    Nikolazy Zamosenchuk Newbie

      We have a situation, where services are connected as cacheLoaders (they are only listening persistent changes). But on put() we need to fetch some additional data from cache.
      Our cache loaders are extending Your's abstract classes.
      When I simply inside this method do cache.get(...) I get an exception for invalid state (java.lang.IllegalStateException: Transaction org.jboss.cache.transaction.DummyTransaction@11563ff is not in a valid state to be invoking cache operations on. - batching is enabled)

      Is there any possibility to communicate cache inside CacheLoader.put(..) method?