use of com.arjuna.ats.arjuna.common.CoreEnvironmentBeanException in project wildfly by wildfly.
the class CoreEnvironmentService method start.
@Override
public void start(StartContext context) throws StartException {
// Global configuration.
final CoreEnvironmentBean coreEnvironmentBean = arjPropertyManager.getCoreEnvironmentBean();
if (coreEnvironmentBean.getProcessImplementationClassName() == null) {
UuidProcessId id = new UuidProcessId();
coreEnvironmentBean.setProcessImplementation(id);
}
try {
coreEnvironmentBean.setNodeIdentifier(nodeIdentifier);
} catch (CoreEnvironmentBeanException e) {
throw new StartException(e.getCause());
}
// Setup the socket process id if there is a binding
SocketBinding binding = socketProcessBindingInjector.getOptionalValue();
if (binding != null) {
int port = binding.getPort();
coreEnvironmentBean.setSocketProcessIdPort(port);
}
}
Aggregations