SSO 대응

This commit is contained in:
Rinjae
2026-01-13 18:07:27 +09:00
parent e1f7446776
commit 1aa01638d4
6 changed files with 246 additions and 6 deletions
@@ -0,0 +1,85 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.2.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.2.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
">
<bean class="com.eactive.eai.rms.common.spring.CustomBeanFactoryPostProcessor" />
<!-- Online Gateway -->
<bean
id="APIGW"
class="com.eactive.eai.rms.common.datasource.DataSourceType"
p:name="APIGW"
p:text="APIGW"
p:schema="AGWADM"
p:dynamic="true"
p:online="true"
p:jndiName="jdbc/dsOBP_AGW"
p:render="ONL,COM"
/>
<!-- BAP 일괄전송FTP -->
<!-- <bean-->
<!-- id="BAP"-->
<!-- class="com.eactive.eai.rms.common.datasource.DataSourceType"-->
<!-- p:name="BAP"-->
<!-- p:text="BAP"-->
<!-- p:schema="BAPADM"-->
<!-- p:dynamic="true"-->
<!-- p:online="true"-->
<!-- p:jndiName="jdbc/dsOBP_BAP"-->
<!-- p:render="BAP,COM"-->
<!-- />-->
<!-- RMS_DEFAULT -->
<bean
id="MONITORING"
class="com.eactive.eai.rms.common.datasource.DataSourceType"
p:name="MONITORING"
p:text="MONITORING"
p:schema="EMSADM"
p:dynamic="false"
p:online="false"
p:jndiName="jdbc/dsOBP_EMS"
/>
<!-- BATCH(EAI) -->
<!-- META -->
<!-- <bean
id="META"
class="com.eactive.eai.rms.common.datasource.DataSourceType"
p:name="META"
p:text="META"
p:schema="ndapims"
p:dynamic="false"
p:online="false"
p:jndiName="NDAPIMS_APP_NXA"
/> -->
<!--IM -->
<!-- <bean
id="IM"
class="com.eactive.eai.rms.common.datasource.DataSourceType"
p:name="IM"
p:text="IM"
p:schema="ndapi"
p:dynamic="false"
p:online="false"
p:jndiName="API_APP_NXA"
/> -->
</beans>
@@ -0,0 +1,136 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.2.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.2.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.2.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-3.2.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd
">
<!-- JNDI DataSource for J2EE environments -->
<bean
id="dataSource"
class="com.eactive.eai.rms.common.datasource.RoutingDataSource">
<property
name="targetDataSources">
<map
key-type="java.lang.String">
<entry
key="APIGW"
value-ref="APIGW" />
<!-- <entry-->
<!-- key="BAP"-->
<!-- value-ref="BAP" />-->
</map>
</property>
<property
name="defaultTargetDataSource"
ref="MONITORING">
</property>
</bean>
<context:component-scan
base-package="com.eactive.eai.rms">
<context:include-filter
type="annotation"
expression="org.springframework.stereotype.Component" />
<context:exclude-filter
type="annotation"
expression="org.springframework.stereotype.Controller" />
</context:component-scan>
<context:spring-configured />
<context:annotation-config />
<bean
class="org.springframework.context.annotation.CommonAnnotationBeanPostProcessor" />
<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" />
<aop:config>
<aop:advisor pointcut="execution(* *..*Service.insert*(..))||execution(* *..*Service.update*(..))||execution(* *..*Service.delete*(..))||execution(* *..*Service.transaction*(..))||execution(* *..*Service.backup*(..))
||execution(* *..*Service.requiresNewInsert*(..))||execution(* *..*Service.requiresNewUpdate*(..))||execution(* *..*Service.requiresNewDelete*(..))||execution(* *..*Service.requiresNewTransaction*(..))||execution(* *..*Service.requiresNewBackup*(..))
" advice-ref="txAdvice"/>
</aop:config>
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="requiresNewInsert*" propagation="REQUIRES_NEW" rollback-for="Exception"/>
<tx:method name="requiresNewUpdate*" propagation="REQUIRES_NEW" rollback-for="Exception"/>
<tx:method name="requiresNewDelete*" propagation="REQUIRES_NEW" rollback-for="Exception"/>
<tx:method name="requiresNewTransaction*" propagation="REQUIRES_NEW" rollback-for="Exception"/>
<tx:method name="requiresNewBackup*" propagation="REQUIRES_NEW" rollback-for="Exception"/>
<tx:method name="insert*" propagation="REQUIRED" rollback-for="Exception"/>
<tx:method name="update*" propagation="REQUIRED" rollback-for="Exception"/>
<tx:method name="delete*" propagation="REQUIRED" rollback-for="Exception"/>
<tx:method name="transaction*" propagation="REQUIRED" rollback-for="Exception"/>
<tx:method name="backup*" propagation="REQUIRED" rollback-for="Exception"/>
<tx:method name="*" read-only="true" />
</tx:attributes>
</tx:advice>
<!-- ibatis -->
<bean
id="sqlMapClient"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property
name="dataSource"
ref="dataSource" />
<property name="configLocations">
<list>
<value>/WEB-INF/sqlmap-config/${db.vendor}/sqlMapConfigOfOnl.xml</value>
<!-- <value>/WEB-INF/sqlmap-config/${db.vendor}/sqlMapConfigOfBap.xml</value>-->
<!-- <value>/WEB-INF/sqlmap-config/${db.vendor}/sqlMapConfigOfBat.xml</value>
<value>/WEB-INF/sqlmap-config/${db.vendor}/sqlMapConfigOfService.xml</value> -->
</list>
</property>
</bean>
<!-- ibatis -->
<bean
id="sqlMapClientForMonitoring"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property
name="dataSource"
ref="MONITORING" />
<property
name="configLocation"
value="/WEB-INF/sqlmap-config/${db.vendor}/sqlMapConfigForMonitoring.xml" />
</bean>
<!-- ibatis 스테이징 모니터링 추가-->
<!-- <bean
id="sqlMapClientForMonitoring_stg"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property
name="dataSource"
ref="MONITORING_STG" />
<property
name="configLocation"
value="/WEB-INF/sqlmap-config/${db.vendor}/sqlMapConfigForMonitoring.xml" />
</bean> -->
<!-- ibatis -->
<!-- bean
id="sqlMapClientForMeta"
class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property
name="dataSource"
ref="META" />
<property
name="configLocation"
value="/WEB-INF/sqlmap-config/${db.vendor}/sqlMapConfigForMeta.xml" />
</bean -->
</beans>
@@ -0,0 +1,18 @@
# mariadb/postgresql/oracle/db2
db.vendor=oracle
# db.vendor specific dialect
# Examples
# - H2 : org.hibernate.dialect.H2Dialect
# - oracle10g : org.hibernate.dialect.Oracle10gDialect
# - MySQL8 : org.hibernate.dialect.MySQL8Dialect
# - MariaDB 10.3 : org.hibernate.dialect.MariaDB103Dialect
hibernate.dialect=org.hibernate.dialect.Oracle12cDialect
# Priority of the was -D option
inst.Name=emsSvr96
eai.tableowner=EMSADM
# P/T/D/S
eai.systemmode=L
eai.drmode=N
# black / blue / green / orange / yellow
theme.color=yellow
+3 -2
View File
@@ -1,10 +1,11 @@
### Retrieve Gateway Metrics After a Specific Time Slice
GET {{emsUrl}}/kjb/gw-metrics/after-timeslice/2025-12-02_01:00:00.json
# GET {{emsUrl}}/kjb/gw-metrics/after-timeslice/2025-12-02_01:00:00.json
GET {{emsUrl}}/kjb/gw-metrics/after-timeslice/2026-01-12_08:00:00.json
### Pretty Print
GET {{emsUrl}}/kjb/gw-metrics/after-timeslice/2025-12-02_01:00:00.json?pretty=true
GET {{emsUrl}}/kjb/gw-metrics/after-timeslice/2026-01-12_12:00:00.json?pretty=true
### API 목록
+1
View File
@@ -0,0 +1 @@
eJx9U92K00AYvc9TlLlSJMsk2iYVFKfJpJnd6UxIJq3tTdktZd2fdrW2gncV9hEWZKUsguAirNCrpRc+kYnvIPlPjBpykzPfnO+c830B9PDtkl4cn8zFyWwKGvLzBgASoMgTDvK8gWnYiHVxfoCZkeAJ0mcLfLqYT7rusGW+7gwWk+FLoezj5bG2v1qNUOvN+eP3s0f8yO89i2izZsQpWmUYWi1f0em76Xl+5HvYJWkntTmAsPUklmD2Ec3wGEAdmkpcLlZTIAFPIFeUqlSoNmWoyVBrQPg0fqOLPURohf7F2enR4fxsb3IxAxJgqJfShpvPwddteHMHJEkCXNjYNbEjDG4W0cSo5TNDEM6Kq0ACyBc2ZhYi1OA+EwkeCaC4i4xh/U54vQvu1+Gnb+HH7+HtByABgXtOFHzOGX0QRkpkcX+XU1rpHaMO90hNlYNcMe52WAIoWS23DIr7mFa81cx6AgnfK64mTrI+ReloNErFYtc16t6rxDB+FEVX84K6nIQyOY3sVnRFpkp8bR3mYscHPE335i4JteCoBEO5cUCYxQugMqaCvpnHHtmocBjYGiPH4YQJE4l/jKO+PpnbP7godWzOMEslQQXK7bbWlKGi67XwS2tUWqB8O6pzRQJzq0NcYSeYrkFVbSm1+P9DWs8l+nWdv06iGHpBGFxdhbfrX5e7n9tNsN0E9+sH4fUu/PLjIfgNAQA6dA==
@@ -1,12 +1,11 @@
package com.eactive.eai.rms.common.startup;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import com.eactive.eai.rms.common.util.CommonConstants;
import com.eactive.eai.rms.env.EmsConfig;
import com.eactive.eai.rms.onl.common.service.AdapterStatusSendThreadPool;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
public class AppInitializer implements InitializingBean, DisposableBean {