Async-Sync 시 400에 대한 응답 500 로그 출력

This commit is contained in:
jaewohong
2025-12-16 11:07:05 +09:00
parent 73454018e2
commit 7dd17f0db9
@@ -37,6 +37,7 @@ import com.eactive.eai.message.manager.StandardMessageManager;
import com.eactive.eai.message.mapper.MessageMapper; import com.eactive.eai.message.mapper.MessageMapper;
import com.eactive.eai.message.service.InterfaceMapper; import com.eactive.eai.message.service.InterfaceMapper;
import com.ext.eai.common.stdmessage.STDMessageKeys; import com.ext.eai.common.stdmessage.STDMessageKeys;
import com.eactive.eai.common.message.ServiceMessage; // jwhong
public abstract class DefaultProcess extends Process { public abstract class DefaultProcess extends Process {
protected static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT); protected static Logger logger = Logger.getLogger(Logger.LOGGER_DEFAULT);
@@ -252,6 +253,13 @@ public abstract class DefaultProcess extends Process {
} }
// 송신결과확인 // 송신결과확인
checkSendResult(); checkSendResult();
// 400 Async 에 대한 ack 오는것 500 으로 log에 저장, jwhong for kjbank
if(isAsyncSyncPattern()){
StandardMessage standardMessage = this.resEaiMsg.getStandardMessage();
standardMessage.setBizData(this.resObject, this.outboundCharset);
this.logPssSno = 500;
logSenderCtrlSendRes();
}
// SA // SA
if (isSyncAsyncPattern()) { if (isSyncAsyncPattern()) {
try { try {
@@ -474,6 +482,18 @@ public abstract class DefaultProcess extends Process {
return false; return false;
} }
} }
// jwhong
public boolean isAsyncSyncPattern() {
ServiceMessage firstService = this.reqEaiMsg.getSvcMsg(0);
ServiceMessage secondService = this.reqEaiMsg.getSvcMsg(1);
if (EAIMessageKeys.ASYNC_SVC.equals(this.reqEaiMsg.getSvcTsmtUsgTp())
&& EAIMessageKeys.SYNC_SVC.equals(firstService.getPsvItfTp())
&& EAIMessageKeys.ASYNC_SVC.equals(secondService.getPsvItfTp())){
return true;
}
return false;
}
public boolean isSyncAsyncPattern() { public boolean isSyncAsyncPattern() {
if (!MessageUtil.checkRspErrCd(this.resEaiMsg.getRspErrCd())) { if (!MessageUtil.checkRspErrCd(this.resEaiMsg.getRspErrCd())) {