6 Replies Latest reply on Sep 28, 2003 7:23 AM by rafcio

    JBoss clustering question

    rafcio

      hi,

      we starting develop a new application which should run in an JBoss (we want use newest 3.2.2 and Java 1.4.2_01) cluster on Linux with MySQL (with InnoDB tables). We don't have experiences with developing an clustered J2EE application. Can anybody explain us what should we consider bevore we start to develop.

      We have some stateless session bean as facade with remote interfaces (if we don't use an embded web container). These session beans calls other session beans thru local interface. Should all our session beans be clustered? Than we have 30-40 entity beans which will be clustered.

      We want at first have cluster with two JBoss instances (each on own server). What is the best solution:
      - one Jetty/Tomcat for JSP's and Servlets on own server
      - each JBoss has own embded Jetty/Tomcat


      Best Regards,
      Rafal

        • 1. Re: JBoss clustering question

          Each JBoss node should have its own embedded web container.

          -- Juha

          • 2. Re: JBoss clustering question
            rafcio

            > Each JBoss node should have its own embedded web
            > container.

            Why is this the best solution?


            Rafal

            • 3. Re: JBoss clustering question

              You avoid the very expensive serialization that you get between web tier and EJB tier if you separate your web container.

              You can continue to use integrated security manager which makes your development slightly easier.

              You get better utilization of your hardware if all nodes can respond to both web and EJB invocations (and with a homogeneous deployment you can always invoke locally which is what you want to do as much as possible, goes back to point 1).

              -- Juha

              • 4. Re: JBoss clustering question
                rafcio

                > You avoid the very expensive serialization that you
                > get between web tier and EJB tier if you separate
                > your web container.
                >
                > You can continue to use integrated security manager
                > which makes your development slightly easier.
                >
                > You get better utilization of your hardware if all
                > nodes can respond to both web and EJB invocations
                > (and with a homogeneous deployment you can always
                > invoke locally which is what you want to do as much
                > as possible, goes back to point 1).

                o.k. we would than take Apache webserver with mod_jk load balancer at the front which will forward our calls to one JBoss node in our cluster. Need we than HA-JNDI if we have only local interfaces? Cause we are working local and we use only JNDI.


                Rafal

                • 5. Re: JBoss clustering question

                  As far as I can tell if you're using apache to load balance to web tier and then to stateless sessions you will not need HA-JNDI.

                  -- Juha

                  • 6. Re: JBoss clustering question
                    rafcio

                    thx.