<p>i have issues connecting my spring boot app to mq on icp so how can i define the <code>ibm.mq.connName=mymq-ibm-mq(30803)</code> because i always get this execption :</p>

<pre><code>Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2538;AMQ9204: Connection to host ‘10.0.0.1(1414)’ rejected. [1=com.ibm.mq.jmqi.JmqiException[CC=2;RC=2538;AMQ9213: A communications error for ‘TCP’ occurred. [1=java.net.ConnectException[Connection refused (Connection refused)],3=connnectUsingLocalAddress,4=TCP,5=Socket.connect]],3=10.0.0.1(1414),5=RemoteTCPConnection.connnectUsingLocalAddress]
</code></pre>

<p>how can i get the correct host and the port ?</p>

<p>this is my application.properties :</p>

<pre><code>ibm.mq.queueManager=QM1
ibm.mq.channel=DEV.ADMIN.SVRCONN
ibm.mq.connName=mymq-ibm-mq(30803)
ibm.mq.user=admin
ibm.mq.password=passw0rd
</code></pre>

<p>this is the output of kubectl describe service</p>

<pre><code>Name: mymq-ibm-mq
Namespace: lab
Labels: app=ibm-mq
chart=ibm-mqadvanced-server-dev
heritage=Tiller
release=mymq
Annotations:
Selector: app=ibm-mq,release=mymq
Type: NodePort
IP: 10.1.0.24
Port: console-https 9443/TCP
TargetPort: 9443/TCP
NodePort: console-https 32575/TCP
Endpoints: 10.2.9.53:9443
Port: qmgr 1414/TCP
TargetPort: 1414/TCP
NodePort: qmgr 30803/TCP
Endpoints: 10.2.9.53:1414
Session Affinity: None
External Traffic Policy: Cluster
</code></pre>

Henda Salhi
<p>I'm pretty sure the MQ Connection port should be 1414 and not 30803. Try this:</p>

<pre><code>ibm.mq.connName=mymq-ibm-mq(1414)
</code></pre>
