7 Replies Latest reply on Aug 22, 2006 3:42 AM by manik

    JBossCache integration into WebLogic

    jfnormand1

      Hi,

      I'm trying to integrate the latest JBossCache into WebLogic 9.1, and try to find a good documentation and/or any details about the feasability of that.

      That document:

      http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic

      Is not working properly (404 error on the pages(Screenshot)).

      Thanks in advance.

      Jean-Francois Normand

        • 1. Re: JBossCache integration into WebLogic
          manik

          Hi

          I'll have a look at why the screen shots aren't coming up. In the meanwhile, the text still should point you to how to set up the startup classes in WL. The screen shots are just pics of WebLogic's admin console! :)

          Cheers
          Manik

          • 2. Re: JBossCache integration into WebLogic
            jfnormand1

            Do you know if JBossCache(the latest version) work with Weblogic 9.1 ?

            Thanks

            Jean-Francois

            • 3. Re: JBossCache integration into WebLogic
              manik

              Hi,

              It has been tested with WL 6.x, 7.0 and 8.1. I don't see any reason why it would not work with 9.1 as well.

              The steps in http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic should work with some minor tweaks (location of certain config options in the 9.1 admin console may have changed), but in principle all should be the same - create startup and shutdown classes that start the cache and bind the TreeCache instance to JNDI.

              Pls do post any findings you may have that differ on WL 9.1 though!

              Cheers,
              Manik

              • 4. Re: JBossCache integration into WebLogic
                manik

                Hi,

                I have updated the wiki page (http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic) - pls have a look, there are updated screen shots as well as separate sections on setting up and running the sample code with both WL 8.1.x and WL 9.1.x.

                Also, note that I recommend using the srcs and building the sample code rather than using prebuilt binaries.

                Cheers,
                Manik

                • 5. Re: JBossCache integration into WebLogic
                  jfnormand1

                  Thanks alot.

                  I'll test it and I let you know.

                  Jean-Francois Normand

                  • 6. Re: JBossCache integration into WebLogic
                    pavithrar

                    I am trying to get the http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCacheAndWebLogic working on weblogic9.2.

                    I get the following error message in the weblogic console:

                    -------------------------------------------------------
                    GMS: address is 127.0.0.1:1835
                    -------------------------------------------------------
                    <Aug 18, 2006 3:21:29 PM EDT> <BEA-050002> <Cannot replicate object that is bound in the JNDI under the name java:jbosscache.>

                    I also see the following message in the cache.log
                    [ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' org.jboss.cache.GenericTransactionManagerLookup - Failed to perform a lookup for [java:/TransactionManager (JBoss, JRun4)]


                    My configuration details are as below:
                    org.jboss.cache.GenericTransactionManagerLookup
                    REPEATABLE_READ
                    REPL_SYNC


                    All the jars of JBossCache-1.4.0.GA/lib are in the weblogic classpath.

                    While I start my second server of the cluster it is not able to lookup java:jbosscache.

                    I will very much appretiate if someone could spend sometime and help me get this running properly.

                    - Pavithra

                    • 7. Re: JBossCache integration into WebLogic
                      manik

                       



                      <Aug 18, 2006 3:21:29 PM EDT> <BEA-050002> <Cannot replicate object that is bound in the JNDI under the name java:jbosscache.>



                      This is not an error. This is fine, you don't want BEA to replicate your cache instance. This is why you bind it to the java: JNDI namespace.



                      ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)' org.jboss.cache.GenericTransactionManagerLookup - Failed to perform a lookup for [java:/TransactionManager (JBoss, JRun4)]



                      This is fine as well, the GenericTMLookup will cycle through a number of "known" locations where app servers bind their TMs. So there will be a few misses, but it will (should) find WL's TM when it searches for it. (You should see another log message to this effect)

                      Your second server will not be able to see java:jbosscache. This is expected. You need to deploy it on your second server as well, as per the instructions on the wiki. It is the *contents* of the cache that get transparently clustered, not the cache object itself.