EJB JMS javax.naming.NameNotFoundException: XXX not bound

练习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文件,内容如下



       
          xmbean-dd="xmdesc/Queue-xmbean.xml">  
          jboss.messaging:service=ServerPeer  
          jboss.messaging:service=PostOffice  
       

 


转载于:https://www.cnblogs.com/ssp2110/p/3797672.html

你可能感兴趣的:(java)