Ok, I added my spring xml configuration for more explaination for my situation.
First, I aggregated 7 channels Second, The aggregator releases the aggregated channel declared as a publish-channel. Thirds, Each 7 subscribe-channels to select indoor-database to make each message. Forth, Each channel insert data to the external database using jdbc-outbound-channel adaptor.
Below I attached every xml configration related.. Thanks.
<int:bridge input-channel="request-write-to-openPMSQueueChannel"
output-channel="writetoOpenPMSChannel">
<int:poller fixed-rate="5000" max-messages-per-poll="-1">
<int:transactional propagation="REQUIRED"
transaction-manager="transactionExternalDatabaseManager" />
</int:poller>
</int:bridge>
<int:chain input-channel="writetoOpenPMSChannel"
output-channel="writetoOpenPMS007Channel">
<int:service-activator method="exectue007">
<bean id=""
class="com.sds.redca.core.module.analyzer.convert.ModelingConvertSVC">
</bean>
</int:service-activator>
<int:splitter ref="fromListToRowSplitter" />
</int:chain>
<int:chain input-channel="writetoOpenPMSChannel"
output-channel="writetoOpenPMS006Channel">
<int:service-activator method="exectue006">
<bean id=""
class="com.sds.redca.core.module.analyzer.convert.ModelingConvertSVC">
</bean>
</int:service-activator>
<int:splitter ref="fromListToRowSplitter" />
</int:chain>
<int-jdbc:outbound-channel-adapter channel="writetoOpenPMS001Channel"
query="INSERT INTO IF_RSRC
(PJT_ID, DT_INPUT, RSRC_ID, RSRC_TYPE_ID, RSRC_DETAILTYPE_ID, RSRC_NM, CNFG_PJT_NM, RSRC_PATH_NM, LST_RGSTR_ID, LST_RGST_DTM, FINAL_RVSN_NO, YN_USE)
VALUES
(:payload[PJT_ID], :headers[timeStamp], :payload[RSRC_ID], :payload[RSRC_TYPE_ID], :payload[RSRC_DETAILTYPE_ID], :payload[RSRC_NM], :payload[CNFG_PJT_NM],
:payload[RSRC_PATH_NM], :payload[LST_RGSTR_ID], :payload[LST_RGST_DTM], :payload[FINAL_RVSN_NO], :payload[YN_USE])"
data-source="outboundDataSource" />
<int-jdbc:outbound-channel-adapter channel="writetoOpenPMS002Channel"
query="INSERT INTO IF_RSRC_RELATION
(PJT_ID, DT_INPUT, MAIN_RSRC_ID, SUB_RSRC_ID, RELATION_TYPE_CODE_ID)
VALUES
(:payload[PJT_ID], :headers[timeStamp], :payload[MAIN_RSRC_ID], :payload[SUB_RSRC_ID], :payload[RELATION_TYPE_CODE_ID])"
data-source="outboundDataSource" />
But The problem is that I have to trigger some event right after when 7 insert jobs finish successfully. How can I get the point where 7 insert transactions finished for triggering some post-event?