0 Replies Latest reply on Nov 23, 2011 5:36 AM by mschaeidt

    Migrating HA options from jboss-4.2.3.GA to jboss-as-web-7.0.2.Final

    mschaeidt

      Hey there!

       

      I am currently in a transition phase where we migrate from JBoss 4.2.3 to the new JBoss 7.0.2.

      After being able to figure out most of the migrations needed to be done and having the servers running successfully as standalone servers not communication with each other now it's time to setup the HA environment.

       

      There are a few command line options in our startup script for JBoss 4.2.3 which I am not exactly sure how to map them to the standalone-ha.xml configuration. I guessed some and tried to search for answers but as there are mostly answers which consider only versions prior to JBoss AS 7 I have to finally ask here.

       

      ...

      JAVA_OPTS="$JAVA_OPTS -Djboss.partition.udpGroup=228.1.2.41"                     (1)

       

      JAVA_OPTS="$JAVA_OPTS -Djboss.partition.name=NBSTAGELTFRONTEND"      (2)

      JAVA_OPTS="$JAVA_OPTS -Djboss.webpartition.mcast_port=42502"                    (3)

      JAVA_OPTS="$JAVA_OPTS -Djboss.hapartition.mcast_port=42503"                      (4)

       

      JAVA_OPTS="$JAVA_OPTS -Djgroups.bind_addr=$APPSERVER_HOSTNAME"    (5)

       

      JBOSS_OPTS="-c all -b $APPSERVER_HOSTNAME"                                          (6)

      ...


      I have mapped statement (1) to

      <socket-binding name="jgroups-udp" port="55200" multicast-address="${jboss.partition.udpGroup:230.0.0.4}" multicast-port="45688"/>

      Additionally I removed all jgroups TCP related entries from standalone-ha.xml as these are not used.

       

      What I have learned (or at least asume to have learned) is that I do not need to set the the options for the partition name (2) and the mcast_ports ((3) and (4)) anymore, right? Altough it seems to be recommended to set up a partition name. Anyway I would appreciate to find out how I can set this options anyway.

       

      I left statement (5) as it is but dropped the statement (6) as I could not find any equivalent.

       

      Probably I've missed some possibilities of migrating these settings correctly, so any help would be appreciated.

       

      Best regards

       

      Manuel