Author |
Message
|
christian |
Posted: Mon Sep 16, 2002 4:40 pm Post subject: how to browse all message in a queue by using java |
|
|
Newbie
Joined: 11 Sep 2002 Posts: 5
|
is there any Example code to download?
thx |
|
Back to top |
|
 |
christian |
Posted: Mon Sep 16, 2002 5:37 pm Post subject: i take it Back , but a new Question Comes |
|
|
Newbie
Joined: 11 Sep 2002 Posts: 5
|
now i know how to browse all messages in a queue,
but a new Question comes:
when i use code like below:
while ( true ) {
try{
com.ibm.mq.MQGetMessageOptions gmo = new com.ibm.mq.MQGetMessageOptions();
mq.get(mqmessage,gmo);
}
catch (Exception e){
System.out.println( "There is no more Message" )
}
}
When there is no message in the queue , it will always print a message "Unable to load message catalog -mqji"
How can i browse all the messages in a queue , but the message above won't be printed?
thx |
|
Back to top |
|
 |
RogerLacroix |
Posted: Mon Sep 16, 2002 9:15 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
If you put the $MQ$/java/lib in your classpath then MQ will pick up the properties file and print out "2033 No Message Available" (roughly speaking).
If you want to entirely get ridden of MQ's pretty messages then code the following:
Code: |
MQException.log = null; |
later
Roger... _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
christian |
Posted: Tue Sep 17, 2002 9:57 pm Post subject: Thank u |
|
|
Newbie
Joined: 11 Sep 2002 Posts: 5
|
the way u told me may be so rough
is there any other way to work it out? |
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue Sep 17, 2002 10:02 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
lordnecron |
Posted: Thu Sep 19, 2002 1:13 am Post subject: This forum is pretty cool |
|
|
Novice
Joined: 15 Jul 2002 Posts: 12 Location: France, paris
|
I was going to ask the same question about "Unable to load message catalog - mqji"...
So Roger gave me the solution ! Thanks Roger !
Julien |
|
Back to top |
|
 |
|