1 Reply Latest reply: Jun 10, 2010 1:45 AM by 567247 RSS

    Patterns and cache service re-entrancy

    664782
      One of the limitations of EntryProcessor is that you cannot make a re-entrant call into a cache service from within the entry processor.

      Do the incubator patterns, such as the processing pattern, command pattern and functor pattern have the same limitation? In another word, is it safe to make calls to the cache service from within the tasks and commands?
        • 1. Re: Patterns and cache service re-entrancy
          567247
          Yes, this is safe for Commands in the Command Pattern, for Functors in the Functor pattern as well as for Runnables, Callables and ResumableTasks for the Processing Pattern. Work is not executed in EntryProcessors themselves, but by using Threads from an ExecutorService.

          /Christer