/jms-mq-example

Basic Example to use MQ with Spring

Primary LanguageJava

jms-mq-example

Basic Example to use MQ with Spring Boot

IMPORTANT

Artifact wmq.jmsra necessary for the specific classes for MQ

<groupId>com.ibm.mq</groupId>
<artifactId>wmq.jmsra</artifactId>
<version>9.3.3.0</version>

If you want to receive messages, you must activate the 'Client' connection mode on the QueueManager or you will be have the error message:

IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').

It is possible to use the connectionFactory from the WS Server :

Declare a bean for connectionFactory <jee:jndi-lookup id="jmsConnectionFactory" jndi-name="java:comp/env/jms/RESOURCE_NAME" />

When you deploy the EAR on WS map the RESOURCE_NAME on the concerned resource.