FileFetchRequestHandler 구현

This commit is contained in:
임장현
2026-06-05 17:00:26 +09:00
parent 2cf94a3de8
commit adeec703ea
37 changed files with 1206 additions and 273 deletions
@@ -10,6 +10,7 @@ import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import javax.sql.DataSource;
import com.eactive.eai.adapter.socket.config.SocketAdapterManager;
import com.eactive.eai.batch.code.CodeMessageManager;
import com.eactive.eai.batch.scheduler.SchedulerMessageManager;
import com.eactive.eai.common.exception.ExceptionUtil;
import com.eactive.eai.common.lifecycle.Lifecycle;
@@ -124,6 +125,15 @@ public class AppInitializer implements InitializingBean, DisposableBean {
}
logger.debug("CodeMessageManager 메모리 로딩 시작 ------------------------------------------");
try {
CodeMessageManager.getInstance().start();
} catch(LifecycleException e) {
logger.error( e.getMessage(), e);
throw new RuntimeException(ExceptionUtil.getErrorCode(e,"BFCEAICWB001"));
}
logger.debug("CodeMessageManager 메모리 로딩 종료 ------------------------------------------");
logger.debug("Property 메모리 로딩 시작 ------------------------------------------");
try {
PropManager.getInstance().start();
@@ -132,7 +142,7 @@ public class AppInitializer implements InitializingBean, DisposableBean {
throw new RuntimeException(ExceptionUtil.getErrorCode(e,"BFCEAICWB001"));
}
logger.debug("Property 메모리 로딩 종료 ------------------------------------------");
logger.debug("Logger 메모리 로딩 시작 ------------------------------------------");
try {
Logger.doConfigure();
@@ -147,22 +157,22 @@ public class AppInitializer implements InitializingBean, DisposableBean {
logger.error(e.getMessage(), e);
}
try {
Class clazz = Class
.forName("com.eactive.eai.rms.client.context.MonitoringContextFactory");
Object factory = clazz.newInstance();
Method method = clazz.getMethod("create");
method.invoke(factory);
System.out.println("RMSCLIENT AGENT STARTED ~~ !!!!");
logger.warn("EMSCLIENT AGENT STARTED ~~ !!!!");
} catch (InvocationTargetException e) {
System.out.println("RMSCLIENT AGENT CANNOT START ~~ !!!! - "+e.getTargetException().toString());
logger.error("RMSCLIENT AGENT CANNOT START ~~ !!!! - "+e.getTargetException().toString(),e.getTargetException());
e.getTargetException().printStackTrace();
} catch (Throwable e) {
System.out.println("RMSCLIENT AGENT CANNOT START ~~ !!!! - "+e.toString());
logger.error("RMSCLIENT AGENT CANNOT START ~~ !!!! - "+e.toString(),e);
}
// try {
// Class clazz = Class
// .forName("com.eactive.eai.rms.client.context.MonitoringContextFactory");
// Object factory = clazz.newInstance();
// Method method = clazz.getMethod("create");
// method.invoke(factory);
// System.out.println("RMSCLIENT AGENT STARTED ~~ !!!!");
// logger.warn("EMSCLIENT AGENT STARTED ~~ !!!!");
// } catch (InvocationTargetException e) {
// System.out.println("RMSCLIENT AGENT CANNOT START ~~ !!!! - "+e.getTargetException().toString());
// logger.error("RMSCLIENT AGENT CANNOT START ~~ !!!! - "+e.getTargetException().toString(),e.getTargetException());
// e.getTargetException().printStackTrace();
// } catch (Throwable e) {
// System.out.println("RMSCLIENT AGENT CANNOT START ~~ !!!! - "+e.toString());
// logger.error("RMSCLIENT AGENT CANNOT START ~~ !!!! - "+e.toString(),e);
// }
logger.debug("LifeCycle 관련 클래스 메모리 로딩 시작 ------------------------------------------");
LifecycleManager manager = LifecycleManager.getInstance();