关于jboss5.1报QueueConnectionFactory not bound 异常的解决方案
来源:互联网 发布:第一学历 知乎 编辑:程序博客网 时间:2024/04/25 04:58
今天跟着网上的教程开发jms,但调用代码
QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("QueueConnectionFactory");时报错。异常为:javax.naming.NameNotFoundException: QueueConnectionFactory not bound说明jndi名称为QueueConnectionFactory的连接工厂不存在。
登录jboss的jmx-console控制台查看JNDIView,在GLobal JNDI Namespace中并未发现QueueConnectionFactory,只有
ConnectionFactory,因此将代码改为:QueueConnectionFactory factory = (QueueConnectionFactory)ctx.lookup("ConnectionFactory");
后成功运行。由此可见jboss对于TopicConnectionFactory和QueueConnectionFactory已经做了整合,以后只需要使用ConnectionFactory即可。
- 关于jboss5.1报QueueConnectionFactory not bound 异常的解决方案
- JMS发送消息报错:QueueConnectionFactory not bound
- javax.naming.NameNotFoundException: QueueConnectionFactory not bound
- javax.naming.NameNotFoundException: QueueConnectionFactory not bound
- ant打包ejb jboss5.0 ejb not bound 异常 已经解决
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)新的异常解决方案
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)新的异常解决方案
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)新的异常解决方案
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)新的异常解决方案
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)新的异常解决方案
- maven项目报Invalid bound statement (not found): com.**.*解决方案
- jboss5.1数据源加密解决方案
- JBoss5.1GA启动异常
- 关于SSH整合时所报的异常及解决方案
- TabPageIndicator ViewPager has not been bound 的异常解决
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)异常解决方案
- org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)异常解决方案
- 关于ssm框架整合报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):
- extjs 主页面
- Android实现导航栏的左右滑动效果
- win7 笔记本 做WIFI热点的设置
- Android实现渐显按钮的左右滑动效果
- ajax处理过程,ajax入门,XMLHttpRequest对象
- 关于jboss5.1报QueueConnectionFactory not bound 异常的解决方案
- 无法识别的转义序列
- 一个ubuntu使用root权限的小tip
- NSView淡入淡出
- 关于 sql server 客户端执行多条sql语句事务的问题
- 批处理完成FTP下载远程备份文件到本地
- 匹配时刻
- QSqlDatabase: QMYSQL driver not loaded 解决方法
- 导师制