c*s
5 楼
Oracle是数据库,它的工作只是存贮数据。JMS是Java, 消息,这些和存储数据都无关。
我不清楚最新版本的Oracle存储过程强大到什么样子,是不是能直接向JMS里送消息。但
从设计的角度来说,他们是不相关的两个东西,Oracle没有理由具有发消息到JMS的功能
。
你可以搜索向JMS发消息的例子代码,很容易。代码可以跑在任何JAVA环境里,main函数
里都可以,只要JMS服务有效。
"让oracle处理了数据后能发消息到客户端" 这句话里有几个问题。
首先oracle不处理数据,它存贮处理后的数据,尽管oracle有存储过程可以写复杂的逻辑
。处理数据的逻辑通常是写在Java代码里的,除非你有非常非常特殊的理由一定用存储过
程。
其次Oracle不应该发消息到JMS。Oracle是数据库,它向它的用户提供的是SQL。尽管现在
的Oracle内部是Java实现的,当正如我前面说到,你不能在设计上把这两件事混在一起。
技术上估计也达不到。
所谓“处理数据”,一定有他自己的java代码。我的建议是找到那段代码,追加发送消息
的代码。
至于显示,直接或间接的写在JSP或Servlet
【在 t********k 的大作中提到】![](/moin_static193/solenoid/img/up.png)
: 数据库是oracle
: app server是jboss
: 我想是让oracle处理了数据后能发消息到客户端
: 而不是通过在servlet上
: 而且客户端提交的数据是从其它数据库中转移到主数据库中
: 在主数据库中进行了处理后再发消息到客户
: 这样的功能能不能实现?
: 在IE页面加applet或是ActiveX?
我不清楚最新版本的Oracle存储过程强大到什么样子,是不是能直接向JMS里送消息。但
从设计的角度来说,他们是不相关的两个东西,Oracle没有理由具有发消息到JMS的功能
。
你可以搜索向JMS发消息的例子代码,很容易。代码可以跑在任何JAVA环境里,main函数
里都可以,只要JMS服务有效。
"让oracle处理了数据后能发消息到客户端" 这句话里有几个问题。
首先oracle不处理数据,它存贮处理后的数据,尽管oracle有存储过程可以写复杂的逻辑
。处理数据的逻辑通常是写在Java代码里的,除非你有非常非常特殊的理由一定用存储过
程。
其次Oracle不应该发消息到JMS。Oracle是数据库,它向它的用户提供的是SQL。尽管现在
的Oracle内部是Java实现的,当正如我前面说到,你不能在设计上把这两件事混在一起。
技术上估计也达不到。
所谓“处理数据”,一定有他自己的java代码。我的建议是找到那段代码,追加发送消息
的代码。
至于显示,直接或间接的写在JSP或Servlet
【在 t********k 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 数据库是oracle
: app server是jboss
: 我想是让oracle处理了数据后能发消息到客户端
: 而不是通过在servlet上
: 而且客户端提交的数据是从其它数据库中转移到主数据库中
: 在主数据库中进行了处理后再发消息到客户
: 这样的功能能不能实现?
: 在IE页面加applet或是ActiveX?
m*t
6 楼
It's interesting - I googled a bit and found this:
http://www.akadia.com/services/ora_advanced_queueing.html
In general (and in the eyes of any Java enterprise architect) having the
database driving the front tiers could be a rather unorthodoxical
architecture. 8-)
【在 t********k 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
: 数据库是oracle
: app server是jboss
: 我想是让oracle处理了数据后能发消息到客户端
: 而不是通过在servlet上
: 而且客户端提交的数据是从其它数据库中转移到主数据库中
: 在主数据库中进行了处理后再发消息到客户
: 这样的功能能不能实现?
: 在IE页面加applet或是ActiveX?
t*k
7 楼
非常感谢
【在 m******t 的大作中提到】![](/moin_static193/solenoid/img/up.png)
:
: It's interesting - I googled a bit and found this:
: http://www.akadia.com/services/ora_advanced_queueing.html
: In general (and in the eyes of any Java enterprise architect) having the
: database driving the front tiers could be a rather unorthodoxical
: architecture. 8-)
【在 m******t 的大作中提到】
![](/moin_static193/solenoid/img/up.png)
:
: It's interesting - I googled a bit and found this:
: http://www.akadia.com/services/ora_advanced_queueing.html
: In general (and in the eyes of any Java enterprise architect) having the
: database driving the front tiers could be a rather unorthodoxical
: architecture. 8-)
相关阅读
java 的资格认证考试[转载] 请问如何改变Oracle 9i AS中JVM的default encoding请问在哪能够找到java exam的资料JSP is rubbish!makefile to set classpathJ2EE Deploy问题how to get punctuations in Chinese files.How to wrap line at specific position?请推荐JAVA GUI开发工具用于UNIX。anyone use org.gxos package?Stress test tools.JDK Source?[转载] Re: java thread problemhow to multicast objects to clients in java?How to flash point (oval) ?关于运算符的问题入门Java CLASSPATH问题:Ant and Netbeans helphelp! string format???basic java question