if (entityBeanCount < 0 || statelessSessionBeanCount < 0 || statefulSessionBeanCount < 0 || messageDrivenBeanCount < 0) {
printUsageAndExit();
}
EjbArchive ejbArchive = new EjbArchive(ShrinkWrap.create(JavaArchive.class), ejbVersion, entityBeanCount,
statelessSessionBeanCount, statefulSessionBeanCount, messageDrivenBeanCount);
File ejbJarFile = new File("test-ejb.jar");
ejbArchive.as(ZipExporter.class).exportTo(ejbJarFile, true);
}