|
|
|
@ -120,8 +120,7 @@ public class ApplicationProfileManager extends ApplicationLifecycleHandler {
|
|
|
|
|
//(we may well have failed there)
|
|
|
|
|
for (Publisher publisher: publishers)
|
|
|
|
|
try {
|
|
|
|
|
publisher.publishApplication(context,
|
|
|
|
|
context.container().configuration().authorizationProvider().getContexts());
|
|
|
|
|
publisher.update(context);
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
|
|
|
|
|
log.error("cannot publish {} with publisher type {} (see details)",context.name(), publisher.getClass().getCanonicalName(), e);
|
|
|
|
@ -140,7 +139,7 @@ public class ApplicationProfileManager extends ApplicationLifecycleHandler {
|
|
|
|
|
for (Publisher publisher: publishers)
|
|
|
|
|
try {
|
|
|
|
|
log.debug("publishing application in context {}", scope);
|
|
|
|
|
publisher.publishApplication(context,
|
|
|
|
|
publisher.create(context,
|
|
|
|
|
Collections.singleton(scope));
|
|
|
|
|
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
@ -161,7 +160,7 @@ public class ApplicationProfileManager extends ApplicationLifecycleHandler {
|
|
|
|
|
for (Publisher publisher: publishers)
|
|
|
|
|
try {
|
|
|
|
|
log.debug("unpublishing application from scope {}", scope);
|
|
|
|
|
publisher.unpublishApplication(context,
|
|
|
|
|
publisher.remove(context,
|
|
|
|
|
Collections.singleton(scope));
|
|
|
|
|
}catch (Exception e) {
|
|
|
|
|
|
|
|
|
|