Instructions for Running James in JBoss

This page describes what you need to do in order to get James to run inside the JBoss application server. Unfortunately this is a pretty ugly process, there are two reasons for this. Firstly the JMXLauncher files have not been tagged with the Phoenix release tags so you need to get the trunk revisions from the CVS repository. Secondly James does not work with the trunk revision of Phoenix because of changes to the lifecycle methods in the underlying Avalon framework and components. The latest revision of Phoenix that James will work with is version 4.0.3.


Get and Build Phoenix

{{{ avalon-phoenix/src/java/org/apache/avalon/phoenix/components/manager/HostedSystemManager.java

Oh wait, the jboss-setup.xml file is out of date so you can ignore that after all - I've reproduced the instructions from that file in this document anyway!


Install Phoenix in JBoss

{{{ mkdir %JBOSS_HOME%\phoenix

   copy <phoenix_4_0_3>\dist\bin\phoenix-loader.jar %JBOSS_HOME%\server\default\deploy 

   <phoenix_4_0_3>\dist\conf\phoenix-service.xml %JBOSS_HOME%\server\default\deploy 

{{{ <component role="org.apache.avalon.phoenix.interfaces.SystemManager"

James/Embedded (last edited 2009-09-20 23:33:23 by localhost)