I have 3 JMS queue's I need to test on a server. I have the following properties for these queues:
- Hostname
- Port
- Channel
- Queue Manager
- Queue Names
I am looking for a way in which to test these queues through a java program. I would like to just have a simple main class to test these queues. One that I can modify the queue properties (particularly in a spring config file) and ensure I can message the queue and receive my message when I call to grab it.
I would just like to send the queue Hello World!
and recevie back Hello World!
I assume this has been done time and time again, but I cannot find any resources that use properties for the queue other than the example below:
@Override
public void configure() throws Exception {
from("activemq:queue:test.queue")
.to("stream:out");
}