This section describes how to install JBoss Messaging.
JBoss Messaging only runs on Java 5 or later. We highly recommend to use Java 6.
By default, JBoss Messaging server is run with 1GB of memory. If your computer has less memory, modify the value in bin/run.sh accordingly.
For persistence, JBoss Messaging uses its own fast journal file, which you can configure to use libaio (which is the default when running on Linux) or Java NIO. In order to use the libaio module on Linux, it's required to install libaio.
You can install libaio using the following steps:
Using yum, (e.g. on Fedora or Red Hat Enterprise Linux):
sudo yum install libaio
Using aptitude, (e.g. on Ubuntu or Debian system):
sudo apt-get install libaio
Apache Ant is required to create the profiles for JBoss AS 5 and run the examples.
After downloading the distribution, unzip it into your chosen directory. At this point it should be possible to run straight out of the box, the following describes the directory structure:
|-- bin |-- config | |-- jboss-as | `-- stand-alone |-- docs | |-- api | |-- quickstart-guide | `-- user-manual |-- examples | |-- core | |-- javaee | `-- jms |-- lib |-- licenses `-- schemas
bin -- binaries and scripts needed to run JBoss Messaging
config -- configuration files needed to configure JBoss Messaging. This contains configurations to run JBoss Messaging either in stand-alone or inside JBoss AS 5. Please refer to the reference guide for details on configuration.
docs -- guides and javadocs for JBoss Messaging
examples -- JMS and Java EE examples. Please refer to the 'running examples' chapter for details on how to run them.
lib -- jars and libraries needed to run JBoss Messaging
licenses -- licenses for JBoss Messaging
schemas -- XML Schemas used to validate JBoss Messaging configuration files
JBoss Messaging 2.0 can be deployed in JBoss AS 5. It is not shipped by default with the application server and you need to create new AS 5 profiles to run AS 5 with JBoss Messaging.
To create AS 5 profiles:
Download JBoss AS 5
Set the environment property JBOSS_HOME to point to the directory where you installed JBoss AS 5
run ant in JBoss Messaging's config/jboss-as directory
This will create 2 new profiles in $JBOSS_HOME/server:
default-with-jbm2 -- it corresponds to AS 5 default profile with JBoss Messaging 2 as its JMS provider. In this profile, JBoss Messaging is non-clustered
all-with-jbm2 -- it corresponds to AS 5 all profile with JBoss Messaging 2 as its JMS provider. In this profile, JBoss Messaging is clustered
You can then start JBoss AS 5 using one of these profiles:
$JBOSS_HOME/bin/run.sh -c default-with-jbm2