Fixing code
This commit is contained in:
parent
6677781b7e
commit
700503860b
|
@ -36,13 +36,13 @@ public class FacetBasedPublisher implements Publisher {
|
|||
HostingNodeManager hostingNodeManager = null;
|
||||
for (final String c : contextToIterate) {
|
||||
try {
|
||||
UUID contextUUID = ContextUtility.getContextUUID(context);
|
||||
if(context.compareTo(c)==0) {
|
||||
hostingNodeManager = new HostingNodeManager(containerContext);
|
||||
hostingNodeManager.createHostingNode();
|
||||
Property property = new Property(Constants.HOSTING_NODE_MANAGER_PROPERTY, hostingNodeManager);
|
||||
containerContext.properties().add(property);
|
||||
}else {
|
||||
UUID contextUUID = ContextUtility.getContextUUID(context);
|
||||
hostingNodeManager.addToContext(contextUUID);
|
||||
}
|
||||
}catch (Throwable e) {
|
||||
|
@ -67,13 +67,13 @@ public class FacetBasedPublisher implements Publisher {
|
|||
EServiceManager eServiceManager = null;
|
||||
for (final String c : contextToIterate) {
|
||||
try {
|
||||
UUID contextUUID = ContextUtility.getContextUUID(context);
|
||||
if(context.compareTo(c)==0) {
|
||||
eServiceManager = new EServiceManager(applicationContext);
|
||||
eServiceManager.createEService();
|
||||
Property property = new Property(Constants.ESERVICE_MANAGER_PROPERTY, eServiceManager);
|
||||
applicationContext.properties().add(property);
|
||||
}else {
|
||||
UUID contextUUID = ContextUtility.getContextUUID(context);
|
||||
eServiceManager.addToContext(contextUUID);
|
||||
}
|
||||
}catch (Throwable e) {
|
||||
|
|
Loading…
Reference in New Issue