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 » Clustering and MQSeries Java (MA88)

Post new topic  Reply to topic
 Clustering and MQSeries Java (MA88) « View previous topic :: View next topic » 
Author Message
khookguy
PostPosted: Tue Jan 15, 2002 11:16 am    Post subject: Reply with quote

Novice

Joined: 14 Jan 2002
Posts: 13

I'm having a problem putting a message onto a cluster queue hosted on a remote queue manager. Here is the MQ Series Classes for Java code that is failing (this was taken from the MA88 sample MQSample.java):

MQQueue system_default_local_queue =
qMgr.accessQueue("clq_default_eai_server",
openOptions,
null, // default q manager
null, // no dynamic q name
null); // no alternate user id

The error that I'm getting is "Completion Code 2, Reason Code 2085".

I know that the cluster queue "clq_default_eai_server" is working because, with the MQSeries Console, I can successfully put a "Test Message" on the queue and it gets successfully transmitted to the remote queue manager.

Any ideas??



_________________
Mark Hansen
email: khookguy@yahoo.com
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Wed Jan 16, 2002 8:44 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

What is the value for "openOptions"?
How is the "qMgr" object created?
What have you set up for your "MQEnvironment" singleton class (if anything)?
Back to top
View user's profile Send private message
khookguy
PostPosted: Thu Jan 17, 2002 8:27 am    Post subject: Reply with quote

Novice

Joined: 14 Jan 2002
Posts: 13

Problem solved. The problem was that I was setting the queue options for both posting and getting messages. Since it is a remote queue in a cluster, getting messages is not a valid operation. Once I changed the settings, everything worked fine.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Clustering and MQSeries Java (MA88)
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.