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 » WebSphere Message Broker (ACE) Support » unexpire msg without using compute node possible?

Post new topic  Reply to topic Goto page Previous  1, 2
 unexpire msg without using compute node possible? « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Thu Jul 19, 2007 11:30 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Thu Jul 19, 2007 11:52 am    Post subject: Reply with quote

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
View user's profile Send private message
pcelari
PostPosted: Mon Jul 23, 2007 3:42 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon Jul 23, 2007 3:46 am    Post subject: Reply with quote

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
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 » WebSphere Message Broker (ACE) Support » unexpire msg without using compute node possible?
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.