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 » General Discussion » MQ Client problems

Post new topic  Reply to topic
 MQ Client problems « View previous topic :: View next topic » 
Author Message
rk400
PostPosted: Thu May 01, 2003 4:24 am    Post subject: MQ Client problems Reply with quote

Apprentice

Joined: 04 Mar 2003
Posts: 27

Hi,

I have a java application using MQ client to put messages in the MQ server. My program flow is as follows:

1. Create the message.
2. Create a connection to the Qmanager.
3. Open the queue for put with openOptions = MQC.MQOO_OUTPUT | MQC.MQOO_SET_IDENTITY_CONTEXT ;
4. Put the message in the local queue(persistent) of the Qmanager using pmo.options = MQC.MQPMO_SET_IDENTITY_CONTEXT | MQC.MQPMO_SYNCPOINT;
5. Commit the qmanager.
6. Update the local database the the message is sent.

My problem is I have sent 20 messages and all of them are in "SENT" status in the database and there are no traces for the messages at the other end. We have done the exception handling properly in the client application. We have checked the DEADQ at the other end.

Configuration details are as follows:

1. MQ client 5.2 and MQ classes for java 5.2.2 on the windows 2000 machine.

2. MQ server 5.2 on windows 2000 server with CSD06 applied.


Let us know if there is any problem in our approach.

Regards,
RK
Back to top
View user's profile Send private message
JohnMN
PostPosted: Thu May 01, 2003 6:26 am    Post subject: Reply with quote

Novice

Joined: 26 Feb 2003
Posts: 19

Is the "other end" on the same QManager as the sending program? If it's a remote QManager, you may have channels that aren't running. The messages would be in the transmission queue for the channel.
In fact, it wouldn't hurt to check your queue and channel definitions.

If it's a local Qmgr, the only thing I can think of off-hand is that another program is stealing the messages. You can do a DISPLAY Q(name) and check the IPPROCS. That will tell you how many programs are getting messages from the queue.

John
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu May 01, 2003 8:14 am    Post subject: Reply with quote

Jedi Knight

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

Take a look at mqdb2log.java on http://www.developer.ibm.com/tech/sampmq.html. It does exactly what you are trying in a two-phase commit UOW. You might be able to spot a problem by looking at it.
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 » General Discussion » MQ Client problems
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.