Overview
We have a tool called JeeGen for generating JEE apps for testing purposes. These apps can be used to test the jboss-as, jboss-as-5, jboss-as-7, and tomcat plugins.
It currently supports v2.0/v2.1/v3.0/v3.1 EJB-JAR's containing specified numbers of entity beans, SLSB's, SFSB's, and MDB's.
Usage
To use it:
git checkout master
cd modules/helpers/jeeGen
mvn clean install
# Usage: org.rhq.helpers.jeegen.JeeGen EJB_VERSION ENTITY_BEAN_COUNT STATELESS_SESSION_BEAN_COUNT STATEFUL_SESSION_BEAN_COUNT MESSAGE_DRIVEN_BEAN_COUNT
java -jar target/jeeGen-*.jar 3.0 100 100 100 100
This produces a file named test-ejb.jar in the cwd. It is an EJB 3.0 ejb-jar containing 100 entity beans, 100 SLSB's, 100 SFSB's, and 100 MDB's.
Future
In the future, we can add support to JeeGen for generating WAR's, datasource/connectionFactory/topic/queue deployment descriptors, etc.