+1  A: 

Does this help - http://www.murraywilliams.com/computers/buildjboss/jboss3.html ?

zinc
This is for JBoss 3. But I need JBoss 5.
Vladimir Bezugliy
I don't think this is the right thing, but found this PDF, JBOSS isn't my bag, I'm a Tomcat guy - http://community.jboss.org/wiki/JBoss5custommetadatafiles.pdf
zinc
+1  A: 

To customize your own JBoss configuration that is based on the web configuration:

  1. copy $JBOSS_HOME/server/web to $JBOSS_HOME/server/my_config

  2. customize the configuration by editing the configuration files in my_config

  3. start you new configuration by running

$JBOSS_HOME/bin/run.sh -c my_config

or

%JBOSS_HOME%/bin/run.sh -c my_config

Lloyd Meinholz
Yes, but the "customize the configuration" step is mightily complex, and that's what's being asked
skaffman