Sending a JMS Message from Oracle Database on DML Event

只愿长相守 提交于 2019-11-28 05:06:22

问题


I'm trying to determine if it is possible to configure Oracle Database 11g to send a JMS message to a broker (ActiveMQ in my case) when a particular DML event (say an insert or update to a particular table) occurs so that I can process this event in an external, non-Oracle application.

I've done some searching and it seems like Oracle Streams is capable of this use case since it alludes to JMS, but the documentation seems to focus only on Oracle Database to Oracle Database JMS message sending.

I'm not particularly asking HOW to do this but if it is even possible at all, though of course if you could refer me to a tutorial on how to set it up I would be grateful for that as well.


回答1:


You could use an Oracle trigger which calls a Java stored procedure.

The Java stored procedure in turn could send a message using JMS.

Have a look at this example.



来源:https://stackoverflow.com/questions/17599155/sending-a-jms-message-from-oracle-database-on-dml-event

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!