在 JBoss5 中使用 Oracle AQ 作为 JMS
我正在寻找有关如何将 Oracle AQ 设置为 JMSProvider 的完整示例或详细教程。我想创建 MDB,它将由 Oracle AQ 中定义的队列中的消息执行。我正在使用 JBoss AS 5.1 和 Oracle 11
================
感谢您的链接。我已将 Oracle AQ 添加为 JBoss 下的 jms 提供程序,但目前我在将消息排队到队列中时遇到问题。我遇到这样的异常:
2011-10-07 09:18:02,938 INFO [com.sun.genericjmsra:77] (http-10.243.0.66-8080-2) Unable to get Managed Connection for OracleXA Caused by: javax.resource.ResourceException: JMS-232: Podano niepoprawnego uĹźytkownika lub niepoprawne hasĹo dla poĹĹ
这意味着我的用户名或/和密码不正确。该数据 100% 正常,但也许我以错误的方式将其放入配置文件中。
这是我的配置的一部分:
<tx-connection-factory>
<jndi-name>OracleXA</jndi-name>
<rar-name>oracleaq.rar</rar-name>
<connection-definition>javax.jms.QueueConnectionFactory</connection-definition>
<config-property name="ConnectionFactoryProperties" type="java.lang.String">host=IP_OF_MY_HOST,username=XXXX,password=YYYY,port=1521,sid=TESTAQ,driver=thin</config-property>
<config-property name="username" type="java.lang.String">XXXX</config-property>
<config-property name="password" type="java.lang.String">YYYY</config-property>
<max-pool-size>20</max-pool-size>
</tx-connection-factory>
我根据在某些网站上找到的示例构建了它。需要输入用户名和密码两次吗?我对此配置进行了一些更改,但没有解决问题:/
I'm looking for a full example or detail tutorial how to set Oracle AQ as a JMSProvider. I would like to create MDB which would be executed by the messages from queue defined in Oracle AQ. I'm using JBoss AS 5.1 and Oracle 11
================
Thanks for the links. I've added Oracle AQ as a jms provider under my JBoss but i currently i have problem with enqueue message into queue. I got exception like this:
2011-10-07 09:18:02,938 INFO [com.sun.genericjmsra:77] (http-10.243.0.66-8080-2) Unable to get managed connection for OracleXA
Caused by: javax.resource.ResourceException: JMS-232: Podano niepoprawnego uĹźytkownika lub niepoprawne hasĹo dla poĹÄ
It means that I have an incorrect username or/and password. That data is 100% ok but maybe I put it in config file in a wrong way.
Here is part of my config:
<tx-connection-factory>
<jndi-name>OracleXA</jndi-name>
<rar-name>oracleaq.rar</rar-name>
<connection-definition>javax.jms.QueueConnectionFactory</connection-definition>
<config-property name="ConnectionFactoryProperties" type="java.lang.String">host=IP_OF_MY_HOST,username=XXXX,password=YYYY,port=1521,sid=TESTAQ,driver=thin</config-property>
<config-property name="username" type="java.lang.String">XXXX</config-property>
<config-property name="password" type="java.lang.String">YYYY</config-property>
<max-pool-size>20</max-pool-size>
</tx-connection-factory>
I've built it based on example I found on some website. Is it necessary to put username and password twice? I've made some changes into this config but it didn't solve the problem :/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
得到它
而不是:
可以使用jdbc连接字符串:
got it
instead of:
the jdbc connection string can be used:
这篇文章将让您了解如何创建戏剧性地排队。
这个提供了有关设置为 JMS 提供程序的完整想法。 (在这个博客中有许多有用的帖子可用)
This post will give you an idea on how to create queue melodramatically.
And this one give full idea on setting as JMS provider. (In this blog there are number of posts useful posts available)