// create the module object
ClassLoader classLoader = new URLClassLoader(new URL[] {file.toURL()}, getClass().getClassLoader());
EjbModule ejbModule = new EjbModule(classLoader, moduleFile.getName(), ejbJar, openejbJar);
// configure the application
EjbJarInfo ejbJarInfo = openEjbSystem.configureApplication(ejbModule);
openEjbSystem.createEjbJar(ejbJarInfo, classLoader);
}
private void addEjbContainer(OpenEjbSystem openEjbSystem, String id, String type) throws Exception {
EjbContainer ejbContainer = new EjbContainer();