Data format is : YYYY-MM-DD
Version format is : major.minor.patch
commons-codec-1.7.jar -> commons-codec-1.6.jar 으로 down.
bcprov-jdk16-1.46.jar -> bcprov-jdk15-1.46.jar 으로 변경.
<?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:task="http://www.springframework.org/schema/task" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> <bean id="serviceManager" class="com.poscoict.glueframework.biz.control.GlueServiceManagerImpl"> <property name="cacheManager" ref="cacheManager" /> <property name="serviceLoader" ref="serviceLoader" /> </bean> <bean id="serviceLoader" class="com.poscoict.glueframework.biz.control.GlueServiceLoader"/> <bean id="cacheManager" class=". . ."/> <bean id="moniHelper" class=". . ."/> </beans>
Map<String, String> dynamicProperties; Set<String> getPropertyNames(){};
boolean containsBean(String key);
GlueServiceManager bean = null; if ( GlueStaticContext.getBeanFactory().containsBean( "serviceManager" ) ) { bean = GlueStaticContext.getBeanFactory().getBeanObject( "serviceManager", GlueServiceManager.class ); }
<activity name="FireJob" class="com.poscoict.glueframework.scheduling.activity.GlueJobCall"> <transition name="success" value="end" /> <property name="sender" value="eventSender" /> <property name="server-address" value="schedulerServer" /> <property name="job-name" value="jobName" /> <property name="job-log-no" value="requestID" /> <property name="result-key" value="jobName_call_result" /> </activity>
<activity name="FireJob" class="com.poscoict.glueframework.scheduling.activity.GlueJobCall"> <transition name="success" value="end" /> <property name="sender" value="eventSender" /> <property name="server-ip" value="remoteServerIP" /> <property name="server-port" value="remoteServerPort" /> <property name="job-name" value="jobName" /> <property name="job-log-no" value="requestID" /> <property name="result-key" value="jobName_call_result" /> </activity>
java -jar user-application.jar spring spring_scheduler.xml java -jar user-application.jar quartz quartz_scheduler.xml
<bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" lazy-init="true"> <property name="triggers"> . . . </property> <property name="globalJobListeners"> <list> <ref local="dblogging"/> </list> </property> </bean> <bean id="dblogging" class="com.poscoict.glueframework.scheduling.store.GlueScheduledJobInfoLogger"> <property name="dataSource" ref="logging-ds"/> </bean> <bean id="logging-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> . . . </bean>
<bean id="glue-task-1" class="com.poscoict.glueframework.scheduling.task.GlueTaskScheduler"> <property name="ServiceName" value="sample51-service"/> <property name="dataMap"> <map> <entry key="deptno" value="10"/> <entry key="find" value="1"/> </map> </property> <property name="logger" ref="dbLogging"/> </bean> <bean id="dbLogging" class="com.poscoict.glueframework.scheduling.store.GlueScheduledTaskDBLoggerImpl"> <property name="dataSource" ref="logging-ds"/> </bean> <bean id="logging-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> . . . </bean>
<bean id="scheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean" lazy-init="true"> <property name="triggers"> . . . </property> <property name="globalJobListeners"> <list> <ref local="dblogging"/> </list> </property> </bean> <bean id="dblogging" class="com.poscoict.glueframework.scheduling.store.GlueScheduledJobInfoLogger"> <property name="dao" ref="schedulerDao"/> <property name="transactionManager" ref="schedulerTx"/> </bean>
<bean id="gluetask" class="com.poscoict.glueframework.scheduling.task.GlueTaskScheduler"> <property name="contextMap"> <map> <entry key="ServiceName" value="sample51-service"/> <entry key="deptno" value="10"/> <entry key="find" value="1"/> </map> </property> <property name="dbLogging"> <map> <entry key="dao" value="schedulerDao"/> <entry key="tm" value="schedulerTx"/> </map> </property> </bean>