5 Replies Latest reply on Mar 11, 2014 3:03 PM by shahbaz aamir

    JMS setup Jboss 7

    shahbaz aamir Newbie

      Hello Everyone,

       

      I am unable to set up queues as Messaging is not available in JBoss 7 . What do I need to download??

        • 1. Re: JMS setup Jboss 7
          Wolf-Dieter Fink Master

          You might have  a look to the JMS quickstart jboss-eap-quickstarts/helloworld-jms

          There is an example how to do it. I'm not sure whether it is possible with the managemen console.

          • 2. Re: JMS setup Jboss 7
            Jochen Cordes Novice

            You need to start up EAP with the correct profile, the default standalone one doesn't contain messaging, i.e.

             

            ./standalone.sh -c standalone-full.xml

             

            Another alternative is to add the following line at the end of bin/standalone.conf:

             

            JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone-full.xml"

             

            (AFAIK this line was included in standalone.con in pre-JBoss EAP 6.2 releases but has been removed now)

             

            You should then be able to add Queues under Profile / Messaging / Destination (see screenshot).

            1 of 1 people found this helpful
            • 3. Re: JMS setup Jboss 7
              Gulam Samdani Expert

              just add following line into stanalone-full.xml file into message section

               

               

                </jms-connection-factories>

               

                              <jms-destinations>

                                  <jms-queue name="testQueue">

                                      <entry name="queue/MyQueue"/>

                                  </jms-queue>

                              </jms-destinations>

                          </hornetq-server>

              ====================================================

              final String QUEUE_LOOKUP = "queue/MyQueue";

              Queue queue = (Queue)context.lookup(QUEUE_LOOKUP);

              1 of 1 people found this helpful
              • 4. Re: JMS setup Jboss 7
                Jochen Cordes Novice

                Or via the CLI  using the standalone-full.xml profile:

                 

                ./bin/jboss-cli.sh -c

                /subsystem=messaging/hornetq-server=default/jms-queue=testQueue:add(durable=true, entries=[java:/queue/MyQueue])

                 

                in case this needs to be a persistent queue, otherwise just either omit durable=true or set it to false.

                • 5. Re: JMS setup Jboss 7
                  shahbaz aamir Newbie

                  Thanks ,

                  actually i am using eclipse to start jboss . By default it starts using standalone.xml .I have changed Launched Configuration to

                   

                  -mp "D:/software/jboss-eap-6.2.0/jboss-eap-6.2/modules" -logmodule org.jboss.logmanager -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -b localhost -c standalone-full.xml

                   

                   

                  Messaging is now available in admin console .