Solve JMS/queue Problems

Source: Internet
Author: User

 

 

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.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.