Author |
Message |
Topic: MQ Thread-safe? |
yslee2
Replies: 8 Views: 8402
|
Forum: IBM MQ API Support Posted: Wed Mar 19, 2008 1:22 am Subject: MQ Thread-safe? |
Can multiple threads share the same connection handle?
To be more specific, can both threads get messages at the same time using the same connection without waiting another to return first? |
Topic: Is the get() method not interruptable? |
yslee2
Replies: 1 Views: 3024
|
Forum: IBM MQ API Support Posted: Tue Feb 19, 2008 4:08 am Subject: Is the get() method not interruptable? |
I am using the C++ api.
When i call the get() method on a queue with the options: MQGMO_WAIT + MQGMO_FAIL_IF_QUIESCING, it blocks until the message arrives or time expires.
even though i interrupt ... |
Topic: What is the unit for Expiry of ImqMessage? |
yslee2
Replies: 2 Views: 3053
|
Forum: IBM MQ API Support Posted: Tue Feb 19, 2008 4:01 am Subject: What is the unit for Expiry of ImqMessage? |
Thanks for answering. It clears all my confusion. |
Topic: What is the unit for Expiry of ImqMessage? |
yslee2
Replies: 2 Views: 3053
|
Forum: IBM MQ API Support Posted: Tue Feb 19, 2008 1:06 am Subject: What is the unit for Expiry of ImqMessage? |
I am using the ImqMessage API in C++ and the document says that Expiry is a time-dependent quantity that controls how long WebSphere MQ retains
an unretrieved message before discarding it. The initia ... |
Topic: Need your help[urgent] |
yslee2
Replies: 10 Views: 6522
|
Forum: IBM MQ Java / JMS Posted: Mon Jul 10, 2006 8:12 am Subject: Need your help[urgent] |
either making the the wait interval to be shorter, but i dont like the error printed on the system.out every once in a while.I suggest you go with this idea, have a relatively short wait time and re-w ... |
Topic: Need your help[urgent] |
yslee2
Replies: 10 Views: 6522
|
Forum: IBM MQ Java / JMS Posted: Mon Jul 10, 2006 7:33 am Subject: Need your help[urgent] |
the requirements are:
- get message from a queue, put a reply on another queue ASAP
- run 24x7 until a system reboot which i believe should be once a week
- since this program is new, but the missi ... |
Topic: Need your help[urgent] |
yslee2
Replies: 10 Views: 6522
|
Forum: IBM MQ Java / JMS Posted: Mon Jul 10, 2006 6:55 am Subject: Need your help[urgent] |
my code is sth like that:
....
while(true){
MQMessage msg = new Message();
MQGetMessageOptions gmo = new MQGetMessageOptions();
gmo.options = MQC.MQGMO_WAIT ... |
Topic: Need your help[urgent] |
yslee2
Replies: 10 Views: 6522
|
Forum: IBM MQ Java / JMS Posted: Mon Jul 10, 2006 6:28 am Subject: Need your help[urgent] |
i have found the problem, but havent got the solution yet, please help me out
I got a stupid program which collect message from a queue by a while(true) loop, i set the gmo to be MQGMO_WAIT, waitIn ... |