通讯组件初始化错误处理
parent
983e857275
commit
1c61923d0e
|
@ -49,10 +49,14 @@ public class ComponentManager {
|
|||
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
List<ProtocolComponent> componentList = componentRepository.findByState(ProtocolComponent.STATE_RUNNING);
|
||||
for (ProtocolComponent component : componentList) {
|
||||
register(component);
|
||||
start(component.getId());
|
||||
try {
|
||||
List<ProtocolComponent> componentList = componentRepository.findByState(ProtocolComponent.STATE_RUNNING);
|
||||
for (ProtocolComponent component : componentList) {
|
||||
register(component);
|
||||
start(component.getId());
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
log.error("init protocol components error", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue