2 Replies Latest reply on Aug 6, 2010 4:10 AM by Dalvir Sehmby

    Clustering a bespoke JBoss installation

    Dalvir Sehmby Newbie



      I have a bespoke JBoss installation from a 3rd party supplier running on Windows 2003 and I would like to cluster the JBoss server. The Jboss version is 4.2.1 and has been customised. I dont have the default 'all', 'default', 'minimal' out of the box folders under <JBOSS_HOME>\server, instead I have the 3rd party customised folder called 'jpbc' which contains the following directories: conf, data, deploy and lib (I also have a log, tmp and work directories as expected).


      I am relatively new to JBoss and am tackling this task from an administrators perspective (Im not from a development background!). Are there particular folders/files I can copy from the all directory to my bespoke jpbc directory to enable clustering? or do I migrate the code into the all directory and re-configure?


      I would be grateful if anyone could advise/point me in the right  direction on how to cluster this installation?

        • 1. Re: Clustering a bespoke JBoss installation
          Scott Marlow Master

          Typically, the application is written in a special way to support clustering.  Part of the development process, includes taking special steps to ensure that web/http (user) session replication will work.  What I mean, is that when a user request comes in to the application, attributes are saved in the web/http session.  The web/http session attributes are replicated across the cluster, in case the user request needs to fail-over to a different node.


          From a development perspective, additional discipline is required to avoid putting program state into the web/http session, that cannot be replicated across the cluster.  For example, if the custom application developer, chose to put a JDBC database connection into the web/http session, to be reused by other parts of the application, your not ready to cluster (because JDBC database connections are not serializable).  If the application was not designed to be clusterable, it will have to be refactored before you can cluster it.


          You might get a hint from looking in the application web.xml file.  If you see the tag <distributable/> that is a hint that it might work in a cluster.


          Some general doc on clustering is here http://docs.jboss.org/jbossas/jboss4guide/r4/html/cluster.chapt.html.


          • 2. Re: Clustering a bespoke JBoss installation
            Dalvir Sehmby Newbie

            Thanks for the response, I spoke with the 3rd party and their application is not cluster ready, however, I can load balance but without session replication.