2 Replies Latest reply on Dec 11, 2004 4:14 AM by craig1980

    how to add queue persistent in jbossmq-destination-service.x

    zhangjs

      in http://locahost:8080/jmx-console
      I invoke the createQueue ,but it only create a tempory queue
      how to add the queue persistently ?

        • 1. Re: how to add queue persistent in jbossmq-destination-servi
          genman

          Create the queue in a jboss-service.xml file and deploy it.

          • 2. Re: how to add queue persistent in jbossmq-destination-servi
            craig1980

            Hi; you can create a file .sar; in this file you will have a directory META-INF in wich you can insert an xml file: jboss-service.xml; in this xml file you should write a similar thing:

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss-service_3_2.dtd">
            <server>
             <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=myDurableQueue">
             <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
             <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
             </mbean>
            </server>


            You must insert this .sar file in the ${JBOSS_HOME}/server/${SERVER_INSTANCE}/deploy directory and then you must startup JBoss