3 Replies Latest reply on Dec 8, 2004 5:48 PM by belaban

    Beginner; sample code , plain Treecache

      Hi,
      I am not sure if this is the right forum , but here is my question.

      I am trying to configure JBoss cache with OC4J. Can someone point me to an example implementation which creates a plain Treecache instance , add some data to a node. And then look up for the same Node/data from a different class in the VM.

      I have tried a few things , but could not get it to work.

      Thanks,
      Derry

        • 1. Re: Beginner; sample code , plain Treecache
          belaban

          JBossCache and OC4J are competing products, which one do you want to use ? If it is JBossCache, there are docs and a tutorial on the wiki.

          Bela

          • 2. Re: Beginner; sample code , plain Treecache

            Sorry,
            I probably was not clear with the question.

            I mean't the OC4J application server. I am trying to Use JBossCache in the OC4J application server container.

            I have been trying to find documentation to run JBossCache on other application servers. (OC4J's application server container in my case)

            Could you please point me to relevant documentation , if any.

            I am a nove and i will try to put all that i have tried so far.

            This was my original problem:

            I wrote a simple java class that would populate a node of TreeCache Object with a HashMap. This code was ruinning in the VM of the OC4J application server.

            Then i tried to retrieve the data from a JSP deployed on the app server.

            I was not clear how to do a look up for the TreeCache object that i had just created .

            Later i read that the MBean server for JBossCache would have to be running with the application server for me to get a look up for the TreeCache Object .

            This led me to search for any pertinent documentation.

            Thanks,
            Derry

            • 3. Re: Beginner; sample code , plain Treecache
              belaban

              Check out the wiki for how to use JBossCache inside WebLogic: http://www.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic

              Then look at GenericTransactionManagerLookup.

              Wrt to lookup: you can use JNDI now: check out the documentation for 1.2 (coming out next week) for how to do this.

              Bela