jdbc: oracle database change notification & duplicate events

前端 未结 7 1290
忘了有多久
忘了有多久 2020-12-10 22:36

I need some Listener for any change(update, insert, delete) of Oracle database table.

Problem: I get many detection by single update on my table.

I think its

7条回答
  •  被撕碎了的回忆
    2020-12-10 23:12

    From what I've read so far, I'm a bit confused as well.

    Have you tried printing out the transactionId to see if it is, in fact, a unique event being generated?

    System.out.println("DCE : regId="+dce.getRegristrationId()+"; transactionId="+dce.getTransactionId());
    

    The listeners that I've been working with for JMS require an acknowledgment, but I don't see anything of that sort in the Oracle docs (http://docs.oracle.com/cd/B28359_01/java.111/b31224/dbmgmnt.htm).

    I also found that it might disturb the oracle cache if the event treatment is unthreaded, but it looks you're already doing that too...

    Good luck!

提交回复
热议问题