Fixed init exception
This commit is contained in:
parent
7dd4e0b2c2
commit
591ccc645a
|
@ -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));
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue