I have 3 JMS queue's I need to test on a server. I have the following properties for these queues:
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"); }
It looks like you are trying to connect to an IBM MQ server. You simply need to configure a JMS component and configure an MQConnectionFactory using the values for those properties.
See this related article: Apache Camel: Is it possible to configure WMQ without using Spring?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.