// Inject the application client's injectable resources. This
// must be done after java:comp/env is initialized but before
// the application client's main class is invoked.
InjectionManager injMgr = Switch.getSwitch().getInjectionManager();
injMgr.injectClass(cl, appDesc);
if(runClient) {
Utility.invokeApplicationMain(cl, applicationArgs);
_logger.info("Application main() finished normally");
}
// inject the pre-destroy methods before shutting down
injMgr.invokeClassPreDestroy(cl, appDesc);
// Let's shutdown all the system resource adapters that are
// active in the container.
shutDownSystemAdapters();