Cluster

Prerequisites

  • You have access to a cluster machine

Steps

To run JBoss and PostgreSQL on a cluster machine, follow these steps:

Setup Env Variables

Copy .bash_profile from /afs/ece/usr/tttseng to your home directory.

cp /afs/ece/usr/tttseng/.bash_profile ~

Source it.

. ~/.bash_profile

Now you should have access to Ant, Subversion, and PostgreSQL.

Setup PostgreSQL

Follow the instructionto create the IRV DB. Make sure the Postmaster is running before you proceed.

Checkout IRV

Go back to your home directory and checkout the source.

svn co http://msepc12.sp.cs.cmu.edu/svn/polaris/classes/analysis

Change the Config

You'll want to use ejb_cluster.properties, since the JNDI server listens on port 2099 instead of 1099.

cd ~/analysis/config/

Create a file called default.properties. The file should contain the following line:

conf.ejb = cluster

Start JBoss

Type the following command to start JBoss:

/afs/ece/class/ece846/java/jboss-3.2.3/bin/run.sh -c team10

Test the Installation

Go back to your analysis directory.

cd ~/analysis

Do the acceptance test.

ant acceptance

Hopefully everything should work...

Miscellaneous Notes

  • JBOSS_HOME is /afs/ece/class/ece846/java/jboss-3.2.3/
  • JAVA_HOME is /usr/local/j2sdk1.4.2_02/
  • The port JNDI server listens to is 2099 (instead of the default 1099 to avoid conflict). Make sure the correct port is specified when running the client.
  • The EJB deployment directory is
  • JBoss is using the binding file at /afs/ece/class/ece846/java/jboss-3.2.3/server/team10/conf/binding.xml to specify the ports to use. We're using ports-10.