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 API Support » about MQGetMessageOptions and MQQueue.close

Post new topic  Reply to topic Goto page Previous  1, 2
 about MQGetMessageOptions and MQQueue.close « View previous topic :: View next topic » 
Author Message
Vitor
PostPosted: Thu Dec 07, 2006 4:18 am    Post subject: Reply with quote

Grand High Poobah

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

seraphim119 wrote:
if i set the gmo.waitInterval = 100,can you exit the program?


If you set the interval to 100, why won't the program exit on it's own?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Thu Dec 07, 2006 6:03 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
if i set the gmo.waitInterval = 100


Then why not set it to 100 and see what happens?
Back to top
View user's profile Send private message
seraphim119
PostPosted: Sun Dec 10, 2006 7:05 pm    Post subject: Reply with quote

Acolyte

Joined: 04 Sep 2006
Posts: 57

can you exit the program by press "ctrl+c"?
i can't exit in windowsxp cmd window,it looks like die and has no response.
and also,if you set the gmo.waitInterval = 100 then the console will print 2033 error continually ,that's nonstandard.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Sun Dec 10, 2006 8:19 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
if you set the gmo.waitInterval = 100 then the console will print 2033 error continually ,that's nonstandard.


Nonstandard? A 2033 is as standard as they come. It may not be what your application wants or expects but that doesn't make it nonstandard. Also a 2033 will not result in any error messages on the console unless your program puts them there.

Your application design could decide to simply to set a longer wait time and jump back to life after say 5 minutes of waiting....just to see if someone is doing something like trying to shut it down. Remeber that if a message arrive within that 5 minutes that it will be immediately picked up. In other words it isn't a hard wait for 5 minutes.

A 2033 is standard, and you saying otherwise is both misleading and simply incorrect.
Back to top
View user's profile Send private message
seraphim119
PostPosted: Sun Dec 10, 2006 11:48 pm    Post subject: Reply with quote

Acolyte

Joined: 04 Sep 2006
Posts: 57

yes,i almost know,if i set the waittime = unlimitted,it will can't disconnect from the MQ,thank you very much!
but if there is no message in the queue,it will print 2033 message which like printed from mq.jar,how can i disable it??
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 11, 2006 12:39 am    Post subject: Reply with quote

Grand High Poobah

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

seraphim119 wrote:
but if there is no message in the queue,it will print 2033 message which like printed from mq.jar,how can i disable it??


No, the 2033 is thrown as part of the exceptiion. Disable it how you will. It's your code.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Dec 11, 2006 4:37 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

kevinf2349 wrote:
Also a 2033 will not result in any error messages on the console unless your program puts them there.


Actually, the Java API will print exceptions to std out unless you disable this.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
seraphim119
PostPosted: Mon Dec 11, 2006 5:12 am    Post subject: Reply with quote

Acolyte

Joined: 04 Sep 2006
Posts: 57

yeah ,my dear upstairs,can you tell me how disable it??thank you in advance
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Dec 11, 2006 5:17 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

A simple search in the Java/JMS forum should give you several tens of posts that asked that same question, and have all the same answer.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
seraphim119
PostPosted: Mon Dec 11, 2006 7:26 am    Post subject: Reply with quote

Acolyte

Joined: 04 Sep 2006
Posts: 57

oh,thank you very much ,thanks all,i finally finally finally find out the answer:
"MQException.log=null;"
several days ,i want to find just that little words ,shit.........


where can i find manual about mq tips,just like my question?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Dec 11, 2006 8:22 am    Post subject: Reply with quote

Grand High Poobah

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

seraphim119 wrote:
where can i find manual about mq tips,just like my question?


http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Mon Dec 11, 2006 9:44 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
several days ,i want to find just that little words ,shit.........


Imagine how much quicker it would have been had you done a search on this site in the first place. That coupled with the fact that the original question was about your program not shutting down rather than how to suppress messages and 'Hey presto'.....several days pass.
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 API Support » about MQGetMessageOptions and MQQueue.close
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.