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 » MQ Java Connect Problem

Post new topic  Reply to topic
 MQ Java Connect Problem « View previous topic :: View next topic » 
Author Message
vjakka
PostPosted: Tue Feb 26, 2002 7:26 am    Post subject: Reply with quote

Newbie

Joined: 25 Feb 2002
Posts: 4

Am trying to connect to a remote queue manager and I end up getting this error:
MQJE016: MQ queue manager closed channel immediately during connect
Closure reason = 2009
MQJE001: Completion Code 2, Reason 2009
An MQSeries error occurred :Completion code 2Reason code 2009
Can someone help me out please.

Thanks,
Venkat
Back to top
View user's profile Send private message Send e-mail
ghost
PostPosted: Wed Feb 27, 2002 8:29 am    Post subject: Reply with quote

Newbie

Joined: 26 Feb 2002
Posts: 7

Check to make sure the remote QM is up and running. Make sure to use the correct connection and object handles.
-or-
The call was successful, even though this RC is returned.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
oz1ccg
PostPosted: Wed Feb 27, 2002 8:40 am    Post subject: Reply with quote

Yatiri

Joined: 10 Feb 2002
Posts: 628
Location: Denmark

Take a look on the log on the QueueManager, it tells you what had happend.

2009, indicates that you had contact with the queue manager, but the connection has been broken from the queue manager.

_________________
Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
dsnpevl
PostPosted: Tue Mar 05, 2002 2:26 am    Post subject: Reply with quote

Newbie

Joined: 04 Mar 2002
Posts: 1

I have the same problem. I tried to open a Sender Channel. It seems you need a Server Connection Channel.

See: http://ncc.hursley.ibm.com/forums/CWUF/tips/tipsmq.html#228161328

Hope this helps.
Back to top
View user's profile Send private message
Vin
PostPosted: Tue Mar 26, 2002 7:25 pm    Post subject: Reply with quote

Master

Joined: 25 Mar 2002
Posts: 212
Location: India

Hi!
I have the same problem. Thanks for all the pointers but can you tell me how to
create a Server Channel? I'm new to MQSeries. Thanks very much.

Vin
Back to top
View user's profile Send private message
abiram8
PostPosted: Fri Mar 29, 2002 3:39 am    Post subject: Reply with quote

Master

Joined: 27 Mar 2002
Posts: 207
Location: India

Hi,
Run the rumqlsr -m QueueManagerName -t TCP -p 3453(port Nos)

Try connect the queueManager & view the runmqlsr what does it say


GoodLuck
R.Abiram
Back to top
View user's profile Send private message Send e-mail
Vin
PostPosted: Fri Mar 29, 2002 4:47 pm    Post subject: Reply with quote

Master

Joined: 25 Mar 2002
Posts: 212
Location: India

abiram,
does the listener start the server channel automatically? getting confused as to whether I need to create a server channel and start the listener or just starting the listener would do. Thanks for the help

Back to top
View user's profile Send private message
mqonnet
PostPosted: Fri Mar 29, 2002 6:12 pm    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

does the listener start the server channel automatically?
---yes. As soon as a message arrives on this channel, it is started automatically.

getting confused as to whether I need to create a server channel and start the listener or just starting the listener would do.
---You need to create a svrconn channel and then start the listener yourself. Creating a svrconn channel is easy.
Define chl(SYSTEM.ADMIN.SVRCONN) chltype(SVRCONN) mcauser('mqm')
Bear in mind that you have to use "mqm" only if you want anyone to be able to connect to this qm. If you leave it blank, it would force the other end to check that the userid with which you are putting messages, exists on the system.

Cheers.
Kumar

_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Vin
PostPosted: Fri Mar 29, 2002 6:49 pm    Post subject: Reply with quote

Master

Joined: 25 Mar 2002
Posts: 212
Location: India

Thanks. I need a channel and a listener only for communicating with an other QueueManager, am I right? Also If I'm going to put and get messages from a local queue, do I still need the channel and the listener? I'm just trying to understand the purpose. Thanks for the help.
Back to top
View user's profile Send private message
vjakka
PostPosted: Sat Mar 30, 2002 6:09 am    Post subject: Reply with quote

Newbie

Joined: 25 Feb 2002
Posts: 4

Since the MQManager was running on a remote server, we need a server connection channel(SRVCONN). A sender channel from the local machine and a reciever channel on the other end.
The Error 2009 is not related to the Queue Manager, instead its something to do the channel.
Back to top
View user's profile Send private message Send e-mail
StefanSievert
PostPosted: Sun Mar 31, 2002 12:09 am    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Quote:

On 2002-03-30 06:09, vjakka wrote:
Since the MQManager was running on a remote server, we need a server connection channel(SRVCONN). A sender channel from the local machine and a reciever channel on the other end.
The Error 2009 is not related to the Queue Manager, instead its something to do the channel.


Oh boy....
If you are using the MQSeries Client functionality, you will always need a SRVCONN channel on your queue manager, no matter where it lives. If it is on the same physical box, than the only difference is that you use 'localhost' in your CONNAME attribute of the CLNTCONN channel definition.
If you want to connect two queue managers, you either need a SENDER/RECEIVER or a SERVER/REQUESTER channel pair between the two queue managers.
Good sources of information: MQSeries Intercommunication Guide / MQSeries Clients manual
Cheers,
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
Vin
PostPosted: Sun Mar 31, 2002 10:54 pm    Post subject: Reply with quote

Master

Joined: 25 Mar 2002
Posts: 212
Location: India

I got the same error when I was trying to connect to the QueueManager on a local machine. I'm not using the MQClient to connect to the Queue Manager. Do I still need to create a Server Connection Channel?
Back to top
View user's profile Send private message
Seriadan
PostPosted: Sat Apr 06, 2002 8:02 pm    Post subject: Reply with quote

Newbie

Joined: 05 Apr 2002
Posts: 1

Hello,

I'm having a similar problem, but only on an occasional basis.

We have identical code running on a number of HP servers that gets messages from queues and processes them into a database. The Java based code checks the queue every 30 seconds for messages, and if none found goes back to sleep. Server and client are on the same machine in most cases.

On some of these servers though, we sometimes get the 2009 error. Sometimes it is only once in a while, sometimes it happens in less than 5 minute intervals. It doesn't seem to have anything to do with network loading though - it can happen the same in the middle of the night where there is no load. Seems to happen more often when there is more than one queue being polled by more than one instance of the Java. We have the identical code/server setup, etc. in other locations that have never had a similar error and have been running for over 6 months.

Anyone have any idea why this might occur ?

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 » IBM MQ Java / JMS » MQ Java Connect Problem
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.