Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a JMS Queue to Jboss 7

I want to try and get an understanding of how JMS works. I am going through a tutorial and have created the Producer/Consumer java classes but not sure how to create the JMS queue. I downloaded jboss-as-web-7.0.2.Final which i believe has HornetQ. I have not got anywhere so far as i just cant figure out how to add a Queue.

According to this document https://docs.jboss.org/author/display/AS7/Messaging+configuration , a queue can be added by using the add-jms-queue command. I tried it but it generates an error.

[standalone@localhost:9999 /] add-jms-queue --name=sampleQueue --entries=queue/sampleQueue

The command is not available in the current context (e.g. required subsystems or connection to the controller might be unavailable).

I also cant find an option to add the queue via the admin console on the GUI.

Any ideas?

Thanks

like image 716
ziggy Avatar asked Dec 16 '11 11:12

ziggy


People also ask

How do I start a JMS queue?

Go to Resources > JMS > JMS Providers. From the Scope drop-down list select the server as your scope, and from the provider list select Default messaging provider. Under Additional Properties select Queues. Click New.


1 Answers

If you have JBoss 7 web (Java EE6 Certified), It doesn't contain JMS implementation (HornetQ) as it has not been approved yet. JBoss 7 Everything (NOT Java EE6 Certified) contains JMS implementation.

like image 119
viktor Avatar answered Sep 27 '22 21:09

viktor