JBoss 5.1.0 Adding Queues

How to add custom queues in JBoss 5.1.0?

I found a way to do this through the admin console, but for some reason it continues to fail, I also need to be able to quickly and easily transfer my queues from one JBoss server to another.

Basically, I was wondering if there is a way to create custom queues in an XML file and add this file to the deployment folder in the same way you can do with a custom data file (mydatasource-ds.xml).

Thank.

+3
source share
2 answers

, destination-service.xml ( / , ), . -JMS--service.xml. :

<?xml version="1.0" encoding="UTF-8"?>
<!--
  Messaging Destinations deployment descriptor.
-->
<server>

  <mbean code="org.jboss.jms.server.destination.QueueService"
         name="jboss.messaging.destination:service=Queue,name=MyQueue"
         xmbean-dd="xmdesc/Queue-xmbean.xml">
    <attribute name="JNDIName">MyQueue</attribute>
    <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
    <depends>jboss.messaging:service=PostOffice</depends>
  </mbean>

</server>

mbean JNDI . mbean * destinstations-service.xml, / .

+4

, .

- queue . .

+1

Source: https://habr.com/ru/post/1730648/


All Articles