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

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

    zhang js Newbie

      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
          Elias Ross Master

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

          • 2. Re: how to add queue persistent in jbossmq-destination-servi
            Angelo Immediata Newbie

            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">
             <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>

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