ibm-messaging / mq-jms-spring

Components to assist MQ JMS integration with Spring frameworks
Apache License 2.0
190 stars 102 forks source link

connection issue with spring boot 3 #114

Closed birbirsbirbirs closed 1 month ago

birbirsbirbirs commented 2 months ago

'org.springframework.boot' version '3.3.4' java 21 com.ibm.mq:mq-jms-spring-boot-starter:3.3.3' error log: Caused by: com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED').

ibm broker in docker server: docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 \ --publish 1414:1414 \ --publish 9443:9443 \ --detach \ ibmcom/mq

similar to application in "s1" directory

birbirsbirbirs commented 2 months ago

cmq.zip

application is attached. thank you very very much.

chughts commented 1 month ago

When you run the IBM MQ container you must supply

You can also supply

See https://developer.ibm.com/tutorials/mq-connect-app-queue-manager-containers/ for guidance.

birbirsbirbirs commented 1 month ago

with following properties in application.yml, it worked. thank you very very much. ibm: mq: queueManager: QM1 channel: DEV.ADMIN.SVRCONN connName: localhost(1414) user: admin password: passw0rd

birbirsbirbirs commented 1 month ago

docker run --env LICENSE=accept --env MQ_QMGR_NAME=QM1 --volume qm1data:/mnt/mqm --publish 1414:1414 --publish 9443:9443 --detach --env MQ_APP_USER=app --env MQ_APP_PASSWORD=passw0rd --env MQ_ADMIN_USER=admin --env MQ_ADMIN_PASSWORD=passw0rd --name QM1 icr.io/ibm-messaging/mq:latest