|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Expiry starting at big number |
« View previous topic :: View next topic » |
Author |
Message
|
francoisvdm |
Posted: Thu Mar 06, 2008 6:19 am Post subject: Expiry starting at big number |
|
|
Partisan
Joined: 09 Aug 2001 Posts: 332
|
MB 6.0.3 on Windows
I've seen the following on 2 different systems.... maybe somebody can give me some advice.
I try to create an MQ message with expiry value on the queue, but when the first message is put on the queue it gives an expiry value of 72 ??? for it, a really big value. Every subsequent put will take the value as it was decreased by MQ since first put. So, if I put first msg and 72 500 is added as expiry value, wait for 10 seconds and put 2nd message then if I immediately look at msg then expiry will be 72 400. This value keeps decreasing until it hits the "expiry value as set in MQMD" by the broker, say 600, then all msgs after that will have correct expiry value. I know this sounds crazy.... but hey, just the way I see it.
Here is my compute node code:
Code: |
SET OutputRoot.MQMD.Expiry = 600;
SET OutputRoot.XML.PING.System = 'Message Broker';
|
Any ideas? When I use any other app to put msgs in queue then the expiry value is correct from the very first msg. _________________ If you do not know the answer or you get the urge to answer with "RTFM" or "Search better in this forum", please refrain from doing so, just move on to the next question. Much appreciated.
Francois van der Merwe |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 06, 2008 6:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You are likely running into conflicts between OutputRoot.MQMD.Expiry and OutputRoot.Properties.ExpirationTime.
In Broker v6.0, the Properties tree will take precedence, so you either need to set *it* instead of Expiry, or you need to clear it and set Expiry.
In Broker v6.1, the field that is *changed* will take precedence, which is more "what you expect it to do".
http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r1m0/index.jsp?topic=/com.ibm.etools.mft.doc/ac18520_.htm _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
francoisvdm |
Posted: Thu Mar 06, 2008 10:39 pm Post subject: |
|
|
Partisan
Joined: 09 Aug 2001 Posts: 332
|
Thanks Jeff, but, no sigar
I do start my message flow with a "timeoutnotification".
Here is my new code section:
Code: |
SET OutputRoot.Properties.ExpirationTime = 600;
SET OutputRoot.MQMD.Version = MQMD_CURRENT_VERSION;
SET OutputRoot.XML.PING.System = 'Message Broker';
SET OutputRoot.XML.PING.TimeStamp = CURRENT_TIMESTAMP;
|
And here is trace from right after the MQPOutput node
Code: |
(
(0x01000000):Properties = (
(0x03000000):MessageSet = NULL
(0x03000000):MessageType = NULL
(0x03000000):MessageFormat = NULL
(0x03000000):Encoding = NULL
(0x03000000):CodedCharSetId = NULL
(0x03000000):Transactional = NULL
(0x03000000):Persistence = NULL
(0x03000000):CreationTime = NULL
(0x03000000):ExpirationTime = 600
(0x03000000):Priority = NULL
(0x03000000):ReplyIdentifier = NULL
(0x03000000):ReplyProtocol = ''
(0x03000000):Topic = NULL
(0x03000000):ContentType = NULL
)
(0x01000000):MQMD = (
(0x03000000):Version = 2
(0x03000000):Format = ''
(0x03000000):Expiry = 600
)
(0x01000010):XML = (
(0x01000000):PING = (
(0x01000000):System = (
(0x02000000): = 'Message Broker'
)
(0x01000000):TimeStamp = (
(0x02000000): = TIMESTAMP '2008-03-07 08:35:48.175373'
)
)
)
)
|
Any more ideas anybody?[/code] _________________ If you do not know the answer or you get the urge to answer with "RTFM" or "Search better in this forum", please refrain from doing so, just move on to the next question. Much appreciated.
Francois van der Merwe |
|
Back to top |
|
 |
francoisvdm |
Posted: Thu Mar 06, 2008 11:22 pm Post subject: |
|
|
Partisan
Joined: 09 Aug 2001 Posts: 332
|
More info: This process works 100% when the flow is started from an MQInput node.... but NOT when started from Timeoutnotification node _________________ If you do not know the answer or you get the urge to answer with "RTFM" or "Search better in this forum", please refrain from doing so, just move on to the next question. Much appreciated.
Francois van der Merwe |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri Mar 07, 2008 3:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
So are you creating the MQMD properly? What options do you have set on the MQOutput node?
What's the relationship between the Expiry values you're seeing and the times that the Timeout node is using? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|