|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
unexpire msg without using compute node possible? |
« View previous topic :: View next topic » |
Author |
Message
|
pcelari |
Posted: Thu Jul 19, 2007 11:30 am Post subject: |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
no, it doesn't behave as documented - still restore to original Expiry upon leaving the compute node. _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Jul 19, 2007 11:52 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I created a sample flow.
it consists of MQInput->Compute->MQOutput.
The entire ESQL in the Compute node is
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
-- CALL CopyMessageHeaders();
CALL CopyEntireMessage();
Set OutputRoot.Properties.ExpirationTime = (10 * 60 * 60) * 2;
RETURN TRUE;
END;
If I use MQExplorer, and put a test message on the Input queue, the message on the Output queue has an integer value for the Expiry.
If I put another test message on the Output queue, it has Expiry=Unlimited. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
pcelari |
Posted: Mon Jul 23, 2007 3:42 am Post subject: |
|
|
Chevalier
Joined: 31 Mar 2006 Posts: 411 Location: New York
|
Your code inspired me to realized that if I set the code in CopyMessageHeader (), it always restore to the original Expiry. But if I set the value in the main(), as you did, it stays.
So one should never try to set properties or MQMD by altering the the pre-defined CopyMessageHeader(), or CopyEntireMessage().
Many thanks ! _________________ pcelari
-----------------------------------------
- a master of always being a newbie |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jul 23, 2007 3:46 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
One should NEVER EVER change ANYTHING in the the predefined functions.
It makes the code immensely more confusing for the next person, for absolutely no gain. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|