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 » Is that possible

Post new topic  Reply to topic
 Is that possible « View previous topic :: View next topic » 
Author Message
ulasergin
PostPosted: Tue Apr 05, 2005 3:50 am    Post subject: Is that possible Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 15

Hi all,
I am a Java guy and new to MQ world.

We need to integrate with some third party company via MQ.
We do not want to install MQ Server on our site but just connect to them using the base Java MQ API.

As a proof of concept I installed MQ Server on an windows machine A and installed MQ Client on a windows machine B.I can successfully put a message to that queue via base java library form machine B to server on A.
BUT when I change the host,qmanager,queue and channel parameters to point to the other company's MQ server and try to put a message over internet I get

MQJE001: An MQException occurred: Completion Code 2, Reason 2009
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009

What do u think?What can be the problem?
Do I have to talk to an MQ server on my site to communicate with their server,is that a must?
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Apr 05, 2005 4:13 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

This is almost the same question you posted, and I answered, elsewhere.

2009 means the connection was broken.

It might be a firewall issue. It might be some other network issue.

It might be that everything works fine if you reconnect.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ulasergin
PostPosted: Tue Apr 05, 2005 4:19 am    Post subject: Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 15

Dear jefflowrey thank you very much for both of your answers.

I tried several times and the result is same so it is not an issue solved with reconnect.

Do u have any other idea,where should I look?
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Tue Apr 05, 2005 4:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I've also seen 2009s when using JMS and a CSD level less than 4. What version of the code are you running on your server/client?
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jefflowrey
PostPosted: Tue Apr 05, 2005 4:20 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

At your firewall and at your network and at your partner's firewall and their network.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
ulasergin
PostPosted: Tue Apr 05, 2005 4:36 am    Post subject: Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 15

bower5932 wrote:
I've also seen 2009s when using JMS and a CSD level less than 4. What version of the code are you running on your server/client?


They are using MQ Server 5.3 and we are using MQ Client Java for MQ 5.3 with CSD 09.I am using base Java client not the JMS one.
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Tue Apr 05, 2005 6:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I'd suggest looking into the localaddr parameter on the channels. See my other append.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
fschofer
PostPosted: Tue Apr 05, 2005 6:29 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

Quote:
when I change the host,qmanager,queue and channel parameters


have you also changed the port ?

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Apr 05, 2005 6:36 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

bower5932 wrote:
I'd suggest looking into the localaddr parameter on the channels. See my other append.


I thought localaddr was only on the server side, not the client side?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Apr 05, 2005 8:00 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

It shows up as a parameter on the sender channel (and other outbounds as well). From runmqsc:
Quote:
Local communications address for the channel. Use this parameter if you want a channel to use a particular IP address, port, or port range for outbound communications. This might be useful in recovery scenarios where a channel is restarted on a different TCP/IP stack.
However, I've seen it come in handy when a firewall specifies a list of who can get through. You can use this to control it.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
malammik
PostPosted: Tue Apr 05, 2005 8:14 am    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2005
Posts: 397
Location: Philadelphia, PA

1. Get clearence from network administrators from both both companies that the ports that you are trying to communicate on are open.
2. Ensure that the queue manager on the other side has client attachment feature installed if it is an mvs queue manager.
_________________
Mikhail Malamud
http://www.netflexity.com
http://groups.google.com/group/qflex
Back to top
View user's profile Send private message Visit poster's website AIM Address
jefflowrey
PostPosted: Tue Apr 05, 2005 8:16 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

bower5932 wrote:
It shows up as a parameter on the sender channel (and other outbounds as well).


Yes, I know what it does.

I just don't know where it fits in a client connection (is it a valid parm for SVRCONNs?) , particularly from the client side.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Tue Apr 05, 2005 10:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

No, it doesn't show up on a SVRCONN channel. It shows up on the end which initiates the conversation. For a client, this would be on the CLNTCONN channel.

CLNTCONN channels aren't supported with java. However, there is still a way to get it with java. It is a parameter for JMS and part of the MQEnvironment for java. Details can be found by searching on LOCALADDR in the Using Java manual.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
ulasergin
PostPosted: Tue Apr 05, 2005 10:27 pm    Post subject: Reply with quote

Novice

Joined: 05 Apr 2005
Posts: 15

I have a PDF named WebSphere MQ Using Java (SC34-6066-00) and it does not mention LOCALADDR
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Wed Apr 06, 2005 2:29 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Go get the latest version of the manual. It was added with one of the CSDs.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Is that possible
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.