到达时间 提醒 java,Oracle数据库在到达列中指定的时间时发送通知/调用java方法...

I have a table which has event-details. New records will be inserted to this table by another process continuously. The table has a column Event-end-time.

I have to design a mechanism to invoke a java method to process the events upon reaching the event end time. Some of the option i have are :

Continuously query the database (every 1 min) and find the next latest report to be processed and invoke it on reaching the end time.

Figure out if there is any built in mechanism in ORACLE database to send the java application a notification / Oracle itslef invoking the java method upon reaching the end time of the event.

I have seen options for notification if an record is Inserted/updated/deleted (trigger based) , but till now i have had no luck if the Notification condition to be made custom(if time specified in a column of teh record is reached).

Any advice regarding this will be much appreciated.

Regards,

Deepak

解决方案

The best way that I know of to do this is via Oracle AQ ( a JMS implementation )

There is also database change notification, which I don't have any experience in, but could be what you are after, I believe it actually builds upon AQ.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值