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 » giving syncpoint after another syncpoint without commit ...

Post new topic  Reply to topic Goto page Previous  1, 2
 giving syncpoint after another syncpoint without commit ... « View previous topic :: View next topic » 
Author Message
strom
PostPosted: Thu Apr 10, 2008 3:04 am    Post subject: Reply with quote

Novice

Joined: 09 Apr 2008
Posts: 11

Yeah vitor i sort of get that point your trying to get at ...

that somehow set of circumstances have been created in the envionment where i am using this application that is leading to this implicit commit being caused ... that it may not work even if some small change is made to environment ..


Still this application is being used for bout 2-3 yrs now without change ..
I have been put in this project which uses this application ...
Used daily ( atleast six days a week )
Analysing the code i stumbled upon this anomaly if i may be able to call it .


I being an fresher, with just basic knowledge of how MQ works complicates the matter ...
Back to top
View user's profile Send private message
strom
PostPosted: Thu Apr 10, 2008 3:21 am    Post subject: Reply with quote

Novice

Joined: 09 Apr 2008
Posts: 11

Another query ....


1 ) What will happens if explicit commit is made after multiple syncpoints ?.....

a) from which syncpoint are the messages actually visible ?..

b) do the syncpoints made during same connection Overridden ?..



example :

1) put message1

2) syncpoint

3) put message 2

4) syncpoint

5) put message 3

6) commit

which messages will visible ?.....


I hope my queries do not anger you people ...
( they may seem simple to you all .. but they really seem daunting to me )
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 10, 2008 4:10 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I believe that *all* messages will be available.

But I haven't played with it.

It seems relatively simple to code up a test app...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Apr 10, 2008 4:20 am    Post subject: Reply with quote

Jedi Knight

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

jefflowrey wrote:
It seems relatively simple to code up a test app...


It is easy. You can find a program (mqsync.c or mqsync.cpp) at:

http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html

You enter message text with keywords in it. See the prologue for details.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
PeterPotkay
PostPosted: Thu Apr 10, 2008 6:10 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

strom wrote:
i will be adding an explicit commit statement in the code ..
( thats for sure ) !!!!!!!


or remove the syncpoint if there is no reason to hold back the messages and don't worry about commits (implicit or explicit)
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
strom
PostPosted: Thu Apr 10, 2008 7:21 pm    Post subject: Reply with quote

Novice

Joined: 09 Apr 2008
Posts: 11

Syncpoint is added to make the code generalised . it seems ...

For now the code is used in an application where each message sent to MQ is a seperate transaction ....

but this code could be also used where maybe 2 or more messages need to be passed as an single transaction
( what i mean is that application sends fixed size messsage to MQ , currently no transaction is huge enough to bypass this size , multiple message are not required to be sent for it , but it could be possible in future ...)

so removing syncpoint may not be an wise idea ( atleast in this case ... )

so adding explicit commit may be the better option ....
Back to top
View user's profile Send private message
Nigelg
PostPosted: Thu Apr 10, 2008 10:58 pm    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Performance is best for persistent msgs if the msgs are put in syncpoint.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
strom
PostPosted: Fri Apr 11, 2008 1:01 am    Post subject: Reply with quote

Novice

Joined: 09 Apr 2008
Posts: 11

So Implicit commit in CLOSE connection to MQmanager could have been the only way this thing to happen ?...


also Vitor this piece of code runs on atleast 3 machines ...

1) one on our dev environment
2)at UAT instance
3) in PRODuction at clients instance


so the same environment being present in all three cases chances are pretty slim ,
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Apr 11, 2008 1:51 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

strom wrote:
so the same environment being present in all three cases chances are pretty slim ,


So you develop on a different O/S, on a different level of Java, with a different level of WMQ?

How unusual.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
strom
PostPosted: Fri Apr 11, 2008 2:03 am    Post subject: Reply with quote

Novice

Joined: 09 Apr 2008
Posts: 11

OK VITOR they are same ..



But can there be no other reason ?...

i mean other than
a) environment or
b) implicit commit in CLOSE connection ? ...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » giving syncpoint after another syncpoint without commit ...
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.