SQL Server Query Notifications in JAVA

。_饼干妹妹 提交于 2020-01-02 06:37:18

问题


I've been searching online for a while, but with no luck so far. Is it possible to implement this in JAVA http://www.codeproject.com/Articles/144344/Query-Notification-using-SqlDependency-and-SqlCach? Is it supported by JDBC for SQL Server 2012?

Thanks in advance!


回答1:


You want to listen to SQL server notifications. You can configure MSSql Server to notify a Broker. There is Apache ActiveMQ as an open source solution. So you need to connect MSSql Server to your broker and use JMS implementation to listen & retrieve notifications in java from the broker.

The question now is : is it possible to connect MSSql Server to any broker ? I will search for that and comeback to you.



来源:https://stackoverflow.com/questions/23659038/sql-server-query-notifications-in-java

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