Posted: Mon Nov 24, 2003 5:30 pm Post subject: Missing messages on Queue
Newbie
Joined: 24 Nov 2003 Posts: 2
Hi I'm new to MQ (just did the MQ programming course MQ05 last week) and I've already hit a problem. I'm using the MQSeries base Java to connect to MQSeries via a TCP/IP connection over the network. I have set-up a queue (depth of 5000), a channel and a listener for port 1414. I can send messages to the queue and get them off no problems at all. The problem is when I try to send more then 48 messages only the first 48 messages appear on the queue and the others disappear. They don't even arrive on the dead letter queue!! This stops me adding more messages to the queue until I remove some of them. The network is up and running fine and what makes this really strange is that earlier in the day I could add 1000 messages to the queue with no problems at all. I have also tried sending them via a different port (8083) but still have the same results. Any ideas would be greatly appreciated
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
Always the first place to look for errors is the error logs. Check to see if there are any messages posted to it when you get into this state.
Whats the size of messages. Make sure that you are not hitting the system limit somehow.
Are you putting/getting messages within a Unit of work using Syncpoint. If so, when do you commit. I mean after how many messages do you commit. Some systems(O/s) have a transactional limits. Are you using XA or any other transaction co-ordinator. Verify their limits.
How do you know that its the 1st 48 messages for sure. Could it not be possible that while messages are being put, they are being got as well simultaneously.
when I try to send more then 48 messages only the first 48 messages appear on the queue and the others disappear. They don't even arrive on the dead letter queue!! This stops me adding more messages to the queue until I remove some of them.
whats the error code / exception youre getting ? ..
can it be a simple java coding problem ..
Thanks for your replies. I have discovered the problem For some reason when looking at the message on the queue (MQ is running on an AS400) the AS400 will only let you see 48 messages. When I check the queue depth I can see that there are in fact 1000 (or whatever I put there) messages on the queue. I can even get all the messages of the queue again. I'm not an AS400 person so I'm going to check with someone that knows a bit more about it then me to see what they say. Either way it's crisis over
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