• webMethods中JDBC Adapter Notification的使用


    Notification Service可以对数据库的操作进行监控,类似数据库的trigger。当监视到有Insert,Delete等各种数据库操作的时候可以调用IS上的Service执行某种功能的操作,发布消息到Bloker/本地。

    建立一个新的Notification时会自动生成3个文件:buffer table,trigger,sequence(只在Oracle环境中生成),都存在于数据库中。 buffer table用来存放经过触发器出发事件带来的表,在Notification处理完之后可以自动删除表中该条数据。sequence是自增列,在oracle中不能设置自增属性,需要通过sequence实现,原因以及具体情况不清楚。trigger存在于数据库被监控的表中,trigger会自动将监听到的消息发送到监听表中。

    webMethods中的JDBC Notification需要在IS服务器上对其进行配置,在JDBC Adapter-Polling Notifications中可以看到新建的Notification。有三种状态,disable,enable和suspend。disable状态下会自动删除数据库中的缓存表和触发器,enable则是生成。suspend状态下不删除触发器和缓冲表,但是不对该表监控到的消息进行响应。等待重新enable的时候再对其进行相关操作。

  • 相关阅读:
    Entity SQL 初入
    ObjectQuery查询及方法
    Entity Framework 的事务 DbTransaction
    Construct Binary Tree from Preorder and Inorder Traversal
    Reverse Linked List
    Best Time to Buy and Sell Stock
    Remove Duplicates from Sorted Array II
    Reverse Integer
    Implement Stack using Queues
    C++中const限定符的应用
  • 原文地址:https://www.cnblogs.com/bgWebMethods/p/3853253.html
Copyright © 2020-2023  润新知