This guide uses a collection of samples to demonstrate basic JMS concepts. Before you can run them you need to set up your environment properly.
The sample applications used in this book are located in the
exploring-jms folder of the Fuse Message Broker
installation.
The following procedures describe the steps on various platforms to set the required
HOME, PATH, and CLASSPATH environment
variables.
- Windows
To set the environment and set up sample windows on Windows:
Open a console window, and then enter:
c:\>set ANT_HOME=ant_installc:\>set JAVA_HOME=jvm_installc:\>set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%PATH%Spawn the windows that will run the sample applications:
c:\>start "Window 1" cmdc:\>start "Window 2" cmdc:\>start "Window 3" cmdLaunch the broker:
c:\>set FUSE_MB_ROOT=InstallDirc:\>%FUSE_MB_ROOT%\bin\activemq
- Linux/UNIX
To set the environment and set up sample windows on Linux/UNIX:
Open a terminal window, and then enter:
$ANT_HOME=ant_install$export ANT_HOME$JAVA_HOME=jvm_install$export JAVA_HOME$PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH$export PATH$FUSE_MB_ROOT=InstallDir$export FUSE_MB_ROOTSpawn the windows that will run the sample applications:
$bg$xterm -title "Window 1" &$xterm -title "Window 2" &$xterm -title "Window 3" &Launch the broker:
$cd $FUSE_MB_ROOT/bin$./activemq
- OS X
To set the environment and set up sample windows on OS X:
Open a terminal window, and then enter:
$ANT_HOME=ant_install$JAVA_HOME=jvm_install$PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH$FUSE_MB_ROOT=InstallDirLaunch the broker:
$cd $FUSE_MB_ROOT/bin$./activemqOpen three terminal windows to run the sample applications. Repeat Step 1 in each of these windows.







