-
1. Re: JMS setup Jboss 7
wdfink Feb 23, 2014 10:36 AM (in response to shahbaz07dbit)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
jcordes Mar 1, 2014 7:22 AM (in response to shahbaz07dbit)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).
-
EAP_6_2_messaging_queue_config.png 136.5 KB
-
-
3. Re: JMS setup Jboss 7
masummymesingh Mar 1, 2014 10:24 AM (in response to shahbaz07dbit)1 of 1 people found this helpfuljust 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);
-
4. Re: JMS setup Jboss 7
jcordes Mar 1, 2014 6:49 PM (in response to masummymesingh)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
shahbaz07dbit Mar 11, 2014 3:03 PM (in response to shahbaz07dbit)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 .