Fixed init exception

This commit is contained in:
Luca Frosini 2020-11-23 16:53:08 +01:00
parent 7dd4e0b2c2
commit 591ccc645a
2 changed files with 3 additions and 2 deletions

View File

@ -100,7 +100,6 @@ public class EServiceHandler extends ApplicationLifecycleHandler {
try {
Thread.currentThread().setContextClassLoader(EServiceHandler.class.getClassLoader());
boolean create = true;
eServiceManager = new EServiceManager(applicationContext);
Set<String> startTokens = applicationContext.configuration().startTokens();
Set<UUID> startContextsUUID = new HashSet<>();
@ -112,6 +111,7 @@ public class EServiceHandler extends ApplicationLifecycleHandler {
startContextsUUID.add(contextUUID);
try {
if (create) {
eServiceManager = new EServiceManager(applicationContext);
eServiceManager.createEService();
applicationContext.properties()
.add(new Property(Constants.ESERVICE_MANAGER_PROPERTY, eServiceManager));

View File

@ -99,7 +99,7 @@ public class HostingNodeHandler extends ContainerHandler {
try {
Thread.currentThread().setContextClassLoader(HostingNodeHandler.class.getClassLoader());
boolean create = true;
hostingNodeManager = new HostingNodeManager(containerContext);
List<String> startTokens = containerContext.configuration().startTokens();
Set<UUID> startContextsUUID = new HashSet<>();
@ -111,6 +111,7 @@ public class HostingNodeHandler extends ContainerHandler {
startContextsUUID.add(contextUUID);
try {
if (create) {
hostingNodeManager = new HostingNodeManager(containerContext);
hostingNodeManager.createHostingNode();
containerContext.properties()
.add(new Property(Constants.HOSTING_NODE_MANAGER_PROPERTY, hostingNodeManager));