for (Application systemApp : systemApplications.getApplications()) {
// check to see if we need to load up this system application
if (Boolean.valueOf(systemApp.getDeployProperties().getProperty
(ServerTags.LOAD_SYSTEM_APP_ON_STARTUP))) {
if (deployment.isAppEnabled(systemApp) || server.isDas()) {
ApplicationRef appRef = server.getApplicationRef(systemApp.getName());
processApplication(systemApp, appRef, logger);
}
}
}
List<Application> allApplications = applications.getApplications();
List<Application> standaloneAdapters =
applications.getApplicationsWithSnifferType(Application.CONNECTOR_SNIFFER_TYPE, true);
// load standalone resource adapters first
for (Application standaloneAdapter : standaloneAdapters) {
// load the referenced enabled applications on this instance
// and always (partially) load on DAS so the application
// information is available on DAS
if (deployment.isAppEnabled(standaloneAdapter) || server.isDas()) {
ApplicationRef appRef = server.getApplicationRef(standaloneAdapter.getName());
processApplication(standaloneAdapter, appRef, logger);
}
}
// then the rest of the applications
for (Application app : allApplications) {
if (app.isStandaloneModule() &&
app.containsSnifferType(Application.CONNECTOR_SNIFFER_TYPE)) {
continue;
}
// load the referenced enabled applications on this instance
// and always (partially) load on DAS so the application
// information is available on DAS
if (deployment.isAppEnabled(app) || server.isDas()) {
ApplicationRef appRef = server.getApplicationRef(app.getName());
processApplication(app, appRef, logger);
}
}
// does the user want us to run a particular application