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