2 Replies Latest reply on Oct 2, 2006 7:37 AM by manik

    Using TreeCache as a local cache solution

    cheerme

      Hi, I'm new to JBoss cache and as first implementation I would like to use it as a local cache solution.
      How can I build JBoss Cache so it will contain only things needed for local TreeCache solution, I mean no JGroups, no AOP, etc.

      Thanks a lot,

      Vitaly Vainer,
      Verisign inc.

        • 1. Re: Using TreeCache as a local cache solution
          brian.stansberry

          When you say "build" I'm going to assume you mean "run". If you want to try to build JBC from source without JGroups, well, you're on your own :).

          TreeCache imports classes from JGroups, so I don't think you can run it without jgroups.jar on the classpath. (You can try, but I don't think it will work.) However, if you configure your cache with property "CacheMode" set to LOCAL, JBC will not start a JGroups channel, so JGroups won't actually be used.

          To avoid use of aop, just use plain TreeCache rather than PojoCache (formerly known as TreeCacheAop.) I pretty certain that if you just use TreeCache you didn't even need to have jboss-aop.jar on the classpath.

          • 2. Re: Using TreeCache as a local cache solution
            manik

             


            TreeCache imports classes from JGroups, so I don't think you can run it without jgroups.jar on the classpath. (You can try, but I don't think it will work.)


            This definitely won't work. org.jgroups.blocks.MethodCall objects are central to the interceptor stack in JBoss Cache.

            Like Brian said though, setting your CacheMode to LOCAL will not start a JG channel.