Red Hat DocumentationFuse Message BrokerToggle FramesPrintFeedback

Setting Up the Guided Tour

Before you can run the samples, you need to configure your environment.

Overview

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.

Prerequisites

T run the samples used in this guide you need:

  • Fuse Message Broker

  • Apache Ant

  • Java 5 JDK

Accessing the samples

The sample applications used in this book are located in the exploring-jms folder of the Fuse Message Broker installation.

Setting up the environment and sample windows

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:

  1. Open a console window, and then enter:

    c:\> set ANT_HOME=ant_install
    c:\> set JAVA_HOME=jvm_install
    c:\> set PATH=%JAVA_HOME%\bin;%ANT_HOME%\bin;%PATH%
  2. Spawn the windows that will run the sample applications:

    c:\> start "Window 1" cmd
    c:\> start "Window 2" cmd
    c:\> start "Window 3" cmd
  3. Launch the broker:

    c:\> set FUSE_MB_ROOT=InstallDir
    c:\> %FUSE_MB_ROOT%\bin\activemq
Linux/UNIX

To set the environment and set up sample windows on Linux/UNIX:

  1. 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_ROOT
  2. Spawn the windows that will run the sample applications:

    $ bg
    $ xterm -title "Window 1" &
    $ xterm -title "Window 2" &
    $ xterm -title "Window 3" &
  3. Launch the broker:

    $ cd $FUSE_MB_ROOT/bin
    $ ./activemq
OS X

To set the environment and set up sample windows on OS X:

  1. 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=InstallDir
  2. Launch the broker:

    $ cd $FUSE_MB_ROOT/bin
    $ ./activemq
  3. Open three terminal windows to run the sample applications. Repeat Step 1 in each of these windows.

Comments powered by Disqus