Author |
Message
|
Vitor |
Posted: Thu Dec 07, 2006 4:18 am Post subject: |
|
|
 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 |
|
 |
kevinf2349 |
Posted: Thu Dec 07, 2006 6:03 am Post subject: |
|
|
 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 |
|
 |
seraphim119 |
Posted: Sun Dec 10, 2006 7:05 pm Post subject: |
|
|
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 |
|
 |
kevinf2349 |
Posted: Sun Dec 10, 2006 8:19 pm Post subject: |
|
|
 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 |
|
 |
seraphim119 |
Posted: Sun Dec 10, 2006 11:48 pm Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Mon Dec 11, 2006 12:39 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Mon Dec 11, 2006 4:37 am Post subject: |
|
|
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 |
|
 |
seraphim119 |
Posted: Mon Dec 11, 2006 5:12 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Mon Dec 11, 2006 5:17 am Post subject: |
|
|
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 |
|
 |
seraphim119 |
Posted: Mon Dec 11, 2006 7:26 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Mon Dec 11, 2006 8:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
|
Back to top |
|
 |
kevinf2349 |
Posted: Mon Dec 11, 2006 9:44 am Post subject: |
|
|
 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 |
|
 |
|