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 » IBM MQ Java / JMS » Cannot Connect to remote MQ Server

Post new topic  Reply to topic
 Cannot Connect to remote MQ Server « View previous topic :: View next topic » 
Author Message
sachindere
PostPosted: Wed Jul 05, 2006 11:58 pm    Post subject: Cannot Connect to remote MQ Server Reply with quote

Newbie

Joined: 05 Jul 2006
Posts: 4

Hi guys,
I get Connection refused error when i try to connect to a remote MQ Server. Im using the sample Java program provided by MQ Client. the java app is in Malaysia and connecting to MQ Server in hongkong. Im using the following packages to connect

import com.ibm.mq.*;
import com.ibm.mq.jms.*;
import javax.jms.*;

here is the error :
Failure: Connection attempt failed. The TCP/IP daemon or listener program on 130.21.94.19 is probably not running.
Action: Start the TCP/IP daemon or listener program and check if it is configured to listen on port 10176.

Is there such thing as listener on MQ Server? the MQ Server is running on AS/400 and the java app is on Windows. Could this be a problem? i can connect to remote MQ Server in Malaysia but not outside Malaysia
would appreciate if u guys could help me out
thanks in advance
Sach
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Vitor
PostPosted: Thu Jul 06, 2006 12:09 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Not a Java or AS/400 guy, but:

1) That's a long way to go for a connction & presumably there's some firewalls between client & server. Are they open for MQ traffic?
2) Following from the above, 10176 is an odd port to be using. Have you tried something a bit more traditional to see if that has more luck - it may be the server is listening on a more normal port?


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
sachindere
PostPosted: Thu Jul 06, 2006 12:20 am    Post subject: Reply with quote

Newbie

Joined: 05 Jul 2006
Posts: 4

Vitor wrote:
Not a Java or AS/400 guy, but:

1) That's a long way to go for a connction & presumably there's some firewalls between client & server. Are they open for MQ traffic?
2) Following from the above, 10176 is an odd port to be using. Have you tried something a bit more traditional to see if that has more luck - it may be the server is listening on a more normal port?



hey thanks for ur quick answer. well, according to the vendors, they have opened the firewall and the port for MQ. i can connect to 10176 port on MQ Server installed in different machine... so no worries there.
Is there any way we can find out if the server is listening on normal port? we cant contact the vendors so that is out of the question.....
any ideas?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Vitor
PostPosted: Thu Jul 06, 2006 12:34 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

You can try telneting to 1414 and see if you connect to something. You won't get a telnet session to be sure but if you connect it'll be some kind of evidence.

Unfortunately many people (me included!) avoid 1414 for security reasons in favour of 1415, 1416, etc, so it still doesn't get you that far. The only reliable way is to ask how the server's been configured & if the local duplicate is using 10176 (weird but hey) then it's not unreasonable to assume the remote is the same.

You say vendors. Is this packaged software you're trying to talk to? Or an MQ reseller?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jul 06, 2006 2:27 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There's nothing "unnormal" about using port 10176. As Vitor says, some people think that using a port other than 1414 will "add" security.

If you can establish an MQ connection from *somewhere* using port 10176, then that means that there is an MQ listener running on that port.

Now, it's not clear where you are in Malaysia when it works - are you inside the client's firewall or outside? If outside, then it should work from anywhere on the Internet.

If you were outside, and it doesn't work from wherever you are on the internet, it's most likely that it's your local site that is blocking the port, not the remote site.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sachindere
PostPosted: Thu Jul 06, 2006 6:51 pm    Post subject: Reply with quote

Newbie

Joined: 05 Jul 2006
Posts: 4

jefflowrey wrote:
There's nothing "unnormal" about using port 10176. As Vitor says, some people think that using a port other than 1414 will "add" security.

If you can establish an MQ connection from *somewhere* using port 10176, then that means that there is an MQ listener running on that port.

Now, it's not clear where you are in Malaysia when it works - are you inside the client's firewall or outside? If outside, then it should work from anywhere on the Internet.

If you were outside, and it doesn't work from wherever you are on the internet, it's most likely that it's your local site that is blocking the port, not the remote site.



Hi there,
we are testing on our own machines in Malaysian.we are connecting MQ Server on our network so we are not outside. The client is connected to Hongkong MQ Server and when we installed our java app on that server, it gives Connection refused error. We can ping/telnet to MQ Server from the client machine.
any ideas what could be the reason?
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
jefflowrey
PostPosted: Thu Jul 06, 2006 7:15 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

So the client is connecting FROM Malaysia TO hongkong?

Or the client is connecting in Hong Kong to a server in Hong Kong?

If you can use telnet to connect to the Mq listener port from the same machine that the java code is failing from, then you should try using amqscncx from that same machine. If that can't connect, it should give you an MQ Reason Code that will help you understand why it can't connect.

this reason code will also help us to help you troubleshoot.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sachindere
PostPosted: Thu Jul 06, 2006 7:46 pm    Post subject: Reply with quote

Newbie

Joined: 05 Jul 2006
Posts: 4

jefflowrey wrote:
So the client is connecting FROM Malaysia TO hongkong?

Or the client is connecting in Hong Kong to a server in Hong Kong?

If you can use telnet to connect to the Mq listener port from the same machine that the java code is failing from, then you should try using amqscncx from that same machine. If that can't connect, it should give you an MQ Reason Code that will help you understand why it can't connect.

this reason code will also help us to help you troubleshoot.


the client is connecting from Malaysia to Hongkong.will try the amq command....thanks jeff
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Cannot Connect to remote MQ Server
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.