If you unzip a community JBoss5.1.0 you are able to deploy EJB2 and EJB3 applications by default.
To disable tomcat (http) web server you must remove all components that depends on (jmx- web- management-console ...)
See http://http://community.jboss.org/wiki/JBoss5xTuningSlimming for sliming ...
The supplied URL link is a dead one.
Can someone in the know please provide the correct live one?