EJB JMS javax.naming.NameNotFoundException: XXX not bound
来源:互联网 发布:太湖云计算广州 编辑:程序博客网 时间:2024/05/17 07:02
练习EJB MessageDrivenBean时部署不成功,一直报错
09:57:29,017 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@86de21(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@199f23c destination=queue/jms destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)javax.naming.NameNotFoundException: jms not bound
错误原因:Jboss无法自动创建Queue对象
解决办法:
在项目部署位置
添加一个XXX-service.xml文件,内容如下
<?xml version="1.0" encoding="UTF-8"?><server> <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=XXX"<!--这个地方的name是你自己定义的queue/XXX--> xmbean-dd="xmdesc/Queue-xmbean.xml"> <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends> <depends>jboss.messaging:service=PostOffice</depends> </mbean> </server>
0 0
- EJB JMS javax.naming.NameNotFoundException: XXX not bound
- javax.naming.NameNotFoundException: bookingDatabase not bound
- javax.naming.NameNotFoundException: QueueConnectionFactory not bound
- 关于 javax.naming.NameNotFoundException: UserBean not bound
- javax.naming.NameNotFoundException: myqueue not bound
- javax.naming.NameNotFoundException: mytopic not bound
- javax.naming.NameNotFoundException: myqueue not bound
- javax.naming.NameNotFoundException: QueueConnectionFactory not bound
- javax.naming.NameNotFoundException: Name jms is not bound in this Context
- JBOSS的小问题javax.naming.NameNotFoundException: ... not bound
- javax.naming.NameNotFoundException: Name jdbcis not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context错误待解决中
- GWT + Spring : javax.naming.NameNotFoundException: Name userDao is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- 解决javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- Tomcat配置连接池 异常:javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
- missing } after property list 错误
- c++ primer plus(第6版)中文版 第七章编程练习答案
- 二叉树算法二之中序线索
- Fusioncharts 实时图表数据展现
- Hibernate中inverse属性与cascade属性
- EJB JMS javax.naming.NameNotFoundException: XXX not bound
- android线性布局控件之间的距离设置
- JS怎么获取iframe内html的值
- [iPhone高级] 基于XMPP的IOS聊天客户端程序(XMPP服务器架构)
- R 数据类型
- Hibernate事务与并发问题处理(乐观锁与悲观锁)
- sqlserver大批量插入测试数据-sqlbulkcopy
- 微信公众平台自定义菜单提交失败
- android 读取JSON数据(遍历JSONObject和JSONArray)