ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Connection Exception in Java Code called from ESQL

Post new topic  Reply to topic
 Connection Exception in Java Code called from ESQL « View previous topic :: View next topic » 
Author Message
mqxplorer
PostPosted: Thu Feb 28, 2013 3:02 pm    Post subject: Connection Exception in Java Code called from ESQL Reply with quote

Master

Joined: 22 Jun 2009
Posts: 206

Hi All,

We have a flow that checks the queue depth of a queue for every 15 minutes. This worked fine when we were checking the queue depth of a local queue, however, when we tried connecting to a queue on another server with using a dedicated channel defined for this purpose.

In other words, my flow is working as a client application running on one box and tryong to connect to another queue manager on another box.

When we do this, sometimes the connection works fine and flow gives me the current queue depth, however, this is not consistent. Sometimes it complains about the connectivity...

Below is summary of exceptions...

Code:
AMQ9213: A communications error for  occurred

The return code from the  call was 'java.net.ConnectException[Connection refused]' (X'?'). Record these values and tell the systems administrator.

com.ibm.mq.jmqi.JmqiException: CC=2;RC=2059;AMQ9213: A communications error for  occurred. [1=java.net.ConnectException[Connection refused],3=10.1.2.3]

Connection to host 10.1.2.3(1717)' over '?' was rejected.

[com.ibm.mq.jmqi.JmqiException[CC=2;RC=2059;AMQ9213: A communications error for  occurred. [1=java.net.ConnectException[Connection refused],3=10.1.2.3]], null, 10.1.2.3(1717), null, RemoteTCPConnection.connnectUsingLocalAddress]

AMQ9204: Connection to host 10.1.2.3(1717)' rejected.

The remote system may not be configured to allow connections from this host. Check the '?' listener program has been started on host 10.1.2.3(1717)'.
 If the conversation uses LU 6.2, it is possible that either the User ID or Password supplied to the remote host is incorrect.
 If the conversation uses TCP/IP, it is possible that the remote host does not recognize the local host as a valid host.
 The return code from the '?''RemoteTCPConnection.connnectUsingLocalAddress' call was 'com.ibm.mq.jmqi.JmqiException[CC=2;RC=2059;AMQ9213: A communications error for  occurred. [1=java.net.ConnectException[Connection refused],3=10.1.2.3]]' X('?').


I have tried in debug mode also and it succeeds sometimes and fails other times.

Could anyone tell me what might be the reason for this?

In the overall exceptions.. the below statement confusing me a lot...

Code:
Connection to host 10.1.2.3(1717)' over '?' was rejected.


Can anyone help me with this? I have been trying different ways and followed a lot of suggestions found in this forum, but no luck.

It would be really great if someone helps me with this.

Thanks in advance.

Thanks
mqxplorer
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Feb 28, 2013 3:18 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Moved to MB forum.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Connection Exception in Java Code called from ESQL
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.