2 Replies Latest reply on Oct 28, 2009 3:11 PM by icordoba

    Multiple JBoss instances vs. one "big" JBoss with different

    icordoba

      hello,
      I start this thread to get opinions on which is the best approach when needing to deploy multiple different applications in the same server.
      I've been using JBoss for years starting with version 3. During this time I've used a couple of JBoss instances with scope class loading, even though docs state that disabling unified class loading and enabling marshaning (CallByValue?) is CPU consuming.

      I am migrating now to JBoss 5.1 and have decided to test keeping unified class loading and starting multiple JBoss'es in differennt localhost IPs. (I cannot deploy different applications in the same instance as I have many version conflicts. I use multiple versions of my own EJB3 component library)
      These JBoss will need less memory than the previous one and only JBoss. Of course, they are faster now.

      is this approach right? I use MacOS and its Java VM, while not specially fast, it is suppoused to handle memory sharing between different java instances.

      Maybe there is a different approach for deploying different apps in the same server... as far as I know there is no way to enable isolated class loading without enabling "CallByValue"... is there?

      Thanks for any advice/experiences.

      Ignacio

        • 1. Re: Multiple JBoss instances vs. one
          jaikiran

           

          "icordoba" wrote:
          as far as I know there is no way to enable isolated class loading without enabling "CallByValue"... is there?


          Ignacio


          There is :

          http://www.jboss.org/community/wiki/ClassLoadingConfiguration
          http://www.jboss.org/community/wiki/JBossClassLoadingUseCases

          • 2. Re: Multiple JBoss instances vs. one
            icordoba

            Hello,
            thanks for the links. I had of course read them before posting but, sorry, I can't find definite information there about having to activate CallByValue. I'm sure I'm missing something.
            In my scenario I have to deploy two .ears and two .wars. I use classloading configuration for 2 different repositories in jboss-web.xml and jboss-app.xml
            I need to do this as I cannot include the war's inside the .ears.

            In JBoss I am activating isolation in ear-deployer-jboss-beans.xml but deactivating CallByValue. I also deactivate CallByValue in jboss-service.xml

            In war-deployers-jboss-beans.xml I deactivate java2ClassLoadingCompliance, as well as in jboss-app.xml and jboss-web.xml

            This should enable isolation while not activating CallByValue.

            I'll make checks with both apps. If anybody knows any configuration file I might me missing please point me to any direction.

            Thanks,
            Ignacio