1 Reply Latest reply on Nov 18, 2014 12:03 PM by Jay SenSharma

    create one JMS queue

    javier Bartolome Newbie

      hello.

      I comming from weblogic.

      I am using now jboss 7.1 and i must to configure one jms server, one jms queue and all the infraestructure for deploying my MDBs.

      i am reading the jboss doc and i not see clear how must i to configure it into my domain.xml

      can you help me?

      can you give me one url or one example?

       

      thanks

        • 1. Re: create one JMS queue
          Jay SenSharma Master

          The following article demonstrates how to create a JMS queue on JBoss AS7

          http://middlewaremagic.com/jboss/?p=1616

           

          And the following KCS shows how to use MDB and queueSend program to send and receive messages from AS7.1 queue

          http://middlewaremagic.com/jboss/?p=794

           

          In domain mode you can simply run the following "$JBOSS_HOME/bin/jboss-cli.sh" command to create a JMS queue:

           

          /profile=full/subsystem=messaging/hornetq-server=default/jms-queue=TestQ:add(entries=["java:jboss/exported/jms/queue/TestQ"])
          

           

          Which will generate the following kind of entry inside the mentioned profile "full" in your domain.xml file.

                   

                               <jms-destinations>
                                  <jms-queue name="TestQ">
                                      <entry name="java:jboss/exported/jms/queue/TestQ"/>
                                  </jms-queue>
                              </jms-destinations>