Hallo all.
I have a spring integration applistence cation deployed on Weblogic 10.3 in cluster mode; Oracle 10g ad RDBMS.
I have this configuration:
In this way we have handle the concurrent condition with a "SELECT FOR UPDATE SKIP LOCKED", but I would like to know if there is a best way to handle this kind of situation?Code:<int-jdbc:inbound-channel-adapter id="FirstBatchPoller" query="SELECT SC.* FROM S_CONT_BATCH_STAGING SC WHERE SC.COD_STATOELABORAZIONE = 100 AND FND_CONT_LOCK_BATCH_STAGING ( SC.ROWID ) = 1 AND ROWNUM <= 301 FOR UPDATE SKIP LOCKED" channel="preProcessingSplitterBatchMessage" data-source="cont0Data" update="UPDATE S_CONT_BATCH_STAGING SET COD_STATOELABORAZIONE = '300' WHERE MESSAGE_ID IN (:MESSAGE_ID)"> <int:poller> <int:cron-trigger expression="0 0 0/1 * * *" /> <int:transactional propagation="REQUIRES_NEW" isolation="DEFAULT" transaction-manager="txManager"/> </int:poller> </int-jdbc:inbound-channel-adapter>
Kind regards.
Massimo


Reply With Quote

