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 » Putting messages to cluster queue

Post new topic  Reply to topic
 Putting messages to cluster queue « View previous topic :: View next topic » 
Author Message
MABeatty1978
PostPosted: Mon Mar 16, 2015 5:30 am    Post subject: Putting messages to cluster queue Reply with quote

Acolyte

Joined: 17 Jul 2014
Posts: 54

I have written a java application using /opt/mqm/samp/wmqjava/samples/MQSample.java as a template. Everything works fine until I try to put a message to a cluster queue, when doing so I get an MQRC 2085. Even using the unedited (except for changing the queuemanager name) original MQSample.java results in the same thing. I know the cluster and the queue is configured property because if I use the C Sample amqsput, it works fine.

Here is the code as it relates:

Code:
private static final String qManagerName = System.getenv("QMGR");
qmgr = new MQQueueManager(qManagerName);
int statoo = MQConstants.MQOO_FAIL_IF_QUIESCING | MQConstants.MQOO_OUTPUT;
MQQueue statQ = qmgr.accessQueue("REPLY.Q", statoo);


What am I doing wrong?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Mar 17, 2015 5:23 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Look at the accessQueue methods on the infocenter. There are 2 methods (overloaded) and you are using the wrong one. Make sure you pass a blank queue manager name (not null) for the cluster queue.

Have fun
_________________
MQ & Broker admin
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 » Putting messages to cluster queue
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.