1 Reply Latest reply on Jul 29, 2004 1:42 PM by anil.saldhana

    Can you cluster an application that uses servlets, POJOs and

    axp28

      Hi I am writing a server application that uses servlets, Java Objects and database based logging.

      How can I use JBOSS to do clustering and load balancing? Or should I just use TOMCAT server. My opinion about tomcat is you can not cluster more than 2 or 3 servers as its memory requirement goes too high as it has to duplicate httpsesession to rest of the server every time servlet serves the request.

      Any suggestions? THanks,

      Ashish

        • 1. Re: Can you cluster an application that uses servlets, POJOs
          anil.saldhana

          Ashish,
          You can use JBoss bundled TC instances to do clustering. I suggest you to do the following:
          a) Have a look at the Clustering Document written by Sacha Labourey which describes clustering for HTTP. [This document should be part of the free documentation].
          b) Have a look at the following wiki:
          http://www.jboss.org/wiki/Wiki.jsp?page=JBossHA

          JBoss clustering will be based on JBossCache over JGroups. Very soon(within a fortnight), you will have TreeCache/TreeCacheAop enabled for greater performance.

          With JBoss clustering, you can configure what session information you want replicated (all put_attribues, all gets, all sets etc). This way, syncronization between nodes and memory requirements is less. Have a look at the document I mentioned.

          ------------------------------------
          Anil Saldhana,
          JBoss Inc.
          -----------------------------------