If javax. Naming. namenotfoundexception: JMS not bound appears during running,
Because JBoss does not create a queue object, you need to manually configure the queue object. You can create a xxx-service.xml file in the <jboss5.x installation directory>/Server/default/deploy directory, where xxx can take any value, but must be suffixed with "-service", for example, abc-service.xml. This file can be stored in deploy or its subdirectory (which can be a multi-layer subdirectory. The content of this file is as follows:
<? XML version = "1.0" encoding = "UTF-8"?> <Server> <mbean code = "org. JBoss. MQ. server. JMX. queue "name =" JBoss. MQ. destination: service = queue, name = JMS "> <depends optional-Attribute-name =" destinationmanager "> JBoss. MQ: service = destinationmanager </depends> </mbean> </Server>
<Mbean> the name attribute value of an element must be JMS, which must be consistent with the/section following queue/JMS.