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 » Mainframe, CICS, TXSeries » Data Missing - Strange

Post new topic  Reply to topic
 Data Missing - Strange « View previous topic :: View next topic » 
Author Message
pravin
PostPosted: Mon Jul 18, 2005 12:47 am    Post subject: Data Missing - Strange Reply with quote

Newbie

Joined: 17 Jul 2005
Posts: 4

We have a mainframe system to write data into queue which is read by a java application.
The first record written into the queue is lost most of the times. If we write data when there is atleast one record the problem donot occur.

Does anybody have any idea abt this sitauation ???
Thanks
Pravin
Back to top
View user's profile Send private message Send e-mail
Mr Butcher
PostPosted: Mon Jul 18, 2005 1:08 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

whenever i saw something like this, it was a matter of the application.

try to test the writing and reading applications seperate. write first, then check the queue content, after that read the queue.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
pravin
PostPosted: Mon Jul 18, 2005 1:15 am    Post subject: Reply with quote

Newbie

Joined: 17 Jul 2005
Posts: 4

Thanks yaar
can u pls let me know if there are any tools availabe to view the queue content.
When we write the first data into queue, the queue depth becomes one.
But just before the second write its turns to zero again.
For other writes it is incremented correclty.
Any idea wht the problem culd be
Back to top
View user's profile Send private message Send e-mail
Mr Butcher
PostPosted: Mon Jul 18, 2005 1:19 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

for tools check the mqseries support pac page and google. mo71 is fine if you have a windows machine available, if not chose something else.

also the supplied samples may work (amqsbcg and so on).

is the write program the only programm serving the queue at this moment? no reading process? no queue triggering? make the queue get-disable, turn trigger off, then put the message. if it still disapears the writing program may be in error.

check the logs, fdc files and so on.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
pravin
PostPosted: Mon Jul 18, 2005 2:58 am    Post subject: Reply with quote

Newbie

Joined: 17 Jul 2005
Posts: 4

i am a new user of this site..pls let me know where the program mentioned <amqsbcg > is available???
Back to top
View user's profile Send private message Send e-mail
sebastianhirt
PostPosted: Mon Jul 18, 2005 3:18 am    Post subject: Reply with quote

Yatiri

Joined: 07 Jun 2004
Posts: 620
Location: Germany

Quote:
let me know where the program mentioned <amqsbcg > is available???


This is a free sample program that comes with your MQ installation.

Please check out the quick beginings for your platform, to get more information.
Back to top
View user's profile Send private message
JohnRodey
PostPosted: Mon Jul 18, 2005 5:07 am    Post subject: Reply with quote

Centurion

Joined: 13 Apr 2005
Posts: 103

Are you killing your Java application abnormally?

If you are I have noticed a issue with this. The application registers itself with the QM and tells it that it will be waiting for messages for X amount of time (specified by your wait interval). If you control-c that application (or kill it any other way abnormal way) the QM will still think that the Java app is still out there and will try sending the first message passed in to that application. Since that app is obviously not going to receive that message, it becomes lost. So if you wait interval on that app is infinite then the first message will be lost, if your wait was for 10 seconds then if a message comes in within that 10 seconds it will be lost, otherwise it will be fine.

This sort of issue can also be seen by queues that are exclusive, such as the default performance queue. If you have a queue that is exclusive and being monitored by an application that waits forever for a message, if that application is killed then the queue will not be able to give out any other handles to other apps wishing to get() from that queue, since the queue still thinks that application is out there.

I speak only of ver 5.3, Haven't tried ver 6.0 yet.

I have talked to IBM about this and they said that this behavior is expected. Not sure why they do not consider this a bug? Has anyone else seen this behavior?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 18, 2005 12:55 pm    Post subject: Reply with quote

Grand High Poobah

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

Have you tried checking the queue for uncommitted msgs (assuming syncpoint) ?
Have your run dspmqtrn -m <qmgr> ?

Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Mon Jul 18, 2005 2:03 pm    Post subject: Reply with quote

Jedi Knight

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

JohnRodey wrote:
I have talked to IBM about this and they said that this behavior is expected. Not sure why they do not consider this a bug? Has anyone else seen this behavior?


I've seen this behavior with client programs. The agent will be running on the server waiting for a message. I then kill my program and the agent is still waiting for a message. The message comes in. The agent attempts to send it to the client program and realizes it has gone away. If I was doing things outside of syncpoint, the message gets tossed. If it is inside of syncpoint, the message gets rolled back onto the queue.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
pravin
PostPosted: Tue Jul 26, 2005 4:22 am    Post subject: Reply with quote

Newbie

Joined: 17 Jul 2005
Posts: 4

thanks for the suggestions...

I downloaded a tool from net and checked the data in my queue.
I am not able to view the first data I write into queue.
while the successive records donot have any problem.

Once the data in queue is deleted my second PUT donot give this problem.

Any idea where the problem could be.
(I donot use commit or Syncpoint in my program)
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Tue Jul 26, 2005 6:27 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
Location: London, ON Canada

Hi,

Check your code and if you cannot find the problem then post it here (use BBCodes - paste your code then highlight the code and click the Code button.)

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » Data Missing - Strange
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.