Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: include local-service.xml


  1. Make a copy of the 'all' server configuration and name it 'node1'. Deploy LAMS here.
    titleIf using Linux...

    In ${JBOSS_HOME}/bin/run.conf, set in JAVA_OPTS
    See and for reference.

  2. Move lams.ear to /var/lib/lams/lams.ear
  3. Link ${JBOSS_HOME}/server/node1/deploy/lams.ear to /var/lib/lams/lams.ear
  4. In ${JBOSS_HOME}/server/node1/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml, set UseJK to true in order to enable sticky sessions from the Tomcat side.
  5. In ${JBOSS_HOME}/server/node1/deploy/jbossweb-tomcat55.sar/server.xml, give your node a jvmRoute name:
    No Format
    <Engine name="jboss.web" defaultHost="localhost" jvmRoute="node1">
  6. Delete ${JBOSS_HOME}/server/node1/deploy/deploy.last/farm-service.xml to disable farming
  7. In ${JBOSS_HOME}/server/node1/deploy/tc5-cluster-service.xml and local-service.xml, set CacheMode to REPL_SYNC. We want entity cache replication to be synchronous so our hibernate objects are in a consistent state.
  8. (Optional - is this required?) In ${JBOSS_HOME}/server/node1/deploy/jbossweb-tomcat55.sar/context.xml, set distributable flag to true:
    No Format
    <Context ... distributable="true">
  9. Start up LAMS by doing cd ${JBOSS_HOME}/bin; ./ -c node1 -b ${IP_ADDRESS}

    Make sure you specify the IP address in order for JBoss' auto discovery to work.