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 » Multiphase Commit » MQSyncpoint in Cache application seems not to work

Post new topic  Reply to topic
 MQSyncpoint in Cache application seems not to work « View previous topic :: View next topic » 
Author Message
fremar50
PostPosted: Tue Sep 30, 2008 6:42 am    Post subject: MQSyncpoint in Cache application seems not to work Reply with quote

Newbie

Joined: 31 Jul 2008
Posts: 6

Any help would be highly appreciated:
we are testing MQ syncpoint within Cache application, and according to the IBM documentation when we do MQget under syncpoint messages should return back to the queue in case of an abend. This does not happen for some reason: message disappears.
Below is the test code that is used:
TestRoutine
S strm=##class(%Library.FileCharacterStream).%New()
S StreamFileDir="c:\testdir"
D strm.%LocationSet(StreamFileDir)
D strm.FilenameSet("myfile.txt")
S QDIBconn=##class(%Net.MQRecv).%New()
S QDIBconn.QName="MQ.TO.VMS.DEEPU"
S QDIBconn.QMgr="QQLSDMQ0130"
S QDIBconn.Channel="VMS.SVRCONN"
S QDIBconn.Transport="TCP"
S QDIBconn.Connection="QDCIAD130(1921)"
S QDIBconn.Syncpoint = 1
S spec="S_"_QDIBconn.Channel_"/TCP/"_QDIBconn.Connection
D QDIBconn.%Connect()
S MQOK=QDIBconn.%GetStream(.strm,+$G(TIMEOUT,5))
W strm.ReadLine()
H //Simulating abend.
D QDIBconn.%Commit()
Q
;
This is a client application, QDCIAD130 is the name of the server where qmgr QQLSDMQ0130 resides.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Sep 30, 2008 7:08 am    Post subject: Reply with quote

Grand High Poobah

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

which language are you writing this in, Perl?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Sep 30, 2008 7:15 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

That's clearly not perl.

That's either something very very odd, or mangled .NET/C#.

I guess it's something called 'Cache'?

But why one would simulate an abend by explicitly calling Commit, I don't know.
Back to top
View user's profile Send private message
fremar50
PostPosted: Tue Sep 30, 2008 9:14 am    Post subject: Reply with quote

Newbie

Joined: 31 Jul 2008
Posts: 6

This IS Cache (offered by the company called Intersystems).

This is just a test module.

H ==> this is what is used to Simulate abend
so the next line:
D QDIBconn.%Commit()
is not being executed under this test.
We expect to see a message that was retrieved by MQGet under syncpoint from the queue MQ.TO.VMS.DEEPU to go back to the same very queue after line H (explicit abend) is executed.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 30, 2008 9:39 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Okay, so that "H" means "halt"?

It may not count as an 'abend' for what MQ checks for rollback. I.e. the connection might not be broken by that abend.

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/fg13750_.htm

And Cache may be doing things behind your back to clean up after that H, that you aren't expecting it to do.
Back to top
View user's profile Send private message
fremar50
PostPosted: Tue Sep 30, 2008 10:11 am    Post subject: Reply with quote

Newbie

Joined: 31 Jul 2008
Posts: 6

That's a good point - will have to ask the Intersystems.
Any other ideas?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Multiphase Commit » MQSyncpoint in Cache application seems not to work
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.