e.printStackTrace(); // shouldn't block
}
}
// set the embedder
final Embedder embedder = new Embedder("org.apache.tomee.catalina.TomcatLoader");
SystemInstance.get().setComponent(Embedder.class, embedder);
try {
// create the loader
// This init call affects only this WebappClassloader and is just required
// for runnig the Embedder. The SystemInstance will be initialized more permanently
// in the parent classloader once the required libraries are added.
SystemInstance.init(properties);
// This guy does the magic of squishing the openejb libraries into the parent classloader
// and kicking off the reall integration.
embedder.init(properties);
} catch (final Exception e) {
e.printStackTrace();
}
}