Installing HornetQ 2.1.2 Final on JBoss AS 5.1.0.GA
This page describes the steps required to install HornetQ 2.1.2(final) on JBoss AS 5.1.0.GA. This was done by simply taking the source code of the 'hornetq-int' module from JBossAS trunk and adding that module to a checked out version of JBoss_5_1_0_GA. A diff has been attached to this page.
Download the required projects
- Download JBossAS 5.1.0.GA
- Download HornetQ 2.1.2 (final)
- Install HornetQ as described here
- Verfiy that the server starts correctly.
Add the HornetQ deployer
- Copy the attached jboss-as-hornetq-int.jar to your $JBOSS_HOME/common/lib
- Copy the attached hornetq-deployers-jboss-beans.xml to your $JBOSS_HOME/server/default-with-hornetq/deployers
Install JBossESB
- Now deploy JBossESB to the server:
- cd trunk/product/install
- update deployment.properties to point to you JBossAS5.1.0.GA installation
- update build.xml and add hornetq.sar to the messaging providers to detect. An already updated build.xml is attached which you can use as is.
- ant deploy
- Start the server
Install and run the helloworld_quickstart
- update samples/quickstarts/conf/quickstart.properties and modify quickstarts.properties:
org.jboss.esb.server.home=$JBOSS_HOME org.jboss.esb.server.config=default-with-hornetq
Note: that you should replace '$JBOSS_HOME' with the path to you installed JBossAS 5.1.0.GA installation
- update samples/quickstarts/conf/base-build.xml and add hornetq.sar to the messaging providers to detect:
<condition property="hornetq.present"> <or> <available file="${org.jboss.esb.server.deploy.dir}/hornetq"/> <available file="${org.jboss.esb.server.deploy.dir}/hornetq.sar"/> </or> </condition>
An already updated base-build.xml is attached which you can use as is.
- cd helloworld
- ant deploy
- Copy hornetq client jars to $JBOSS_HOME/client
- cp $JBOSS_HOME/server/default_with_hornetq/lib/hornetq-jms-client.jar
- cp $JBOSS_HOME/server/default_with_hornetq/lib/hornetq-core-client.jar
- cp $JBOSS_HOME/server/default_with_hornetq/lib/netty.jar
- Run the quickstart:
- ant runtest
Comments