Posted: Fri Aug 29, 2008 4:05 am Post subject: repeat the same message
Novice
Joined: 24 Jul 2008 Posts: 17
ok
i have an MQInput node where i get messages with some sequence. they go to HttpRequest node. Problem is that i cannot disturb this sequence. So when i have for example timeout - i have to repeat that message. What i have done is that i just connect compute node to failure and error terminal i httpRequest node, and there i Rebuild message from Environment, set Priority to 9 in MQMD header and propagate to MQoutput which in fact is the same queue as MQInput. Yes this works but it gets this messafge immediately (about 3/4 in one second) so if httpNode propagate to failure terminal for about 1 minute my logs are growing VERY fast. I cant put timeout node cause it will repeat message after few minutes but it will process next messages in queue and i cant disturb sequence.
There is another solution but i dont know how to achieve it - i could (after getting error) clear whole input queue. This would be ok but i dont know how to clear it.
Bad design choice all around.
For a good design choice you need to get rid of the message affinity (sequencing). Find some kind of process (it usually includes a DB).
I think what Fjb is trying to convey is that the design you currently have has some potentially serious flaws and that maybe you should approach the business or whomever regarding the necessity of having the messages sequentially sent to http server.
My assumption from your posting is that you have reliability issues concerning the timeout of the http request for your sequential message and what your design implies is that there is potential here for a infinite loop with the failed sequential message being "requeued" until it is sucessfully sent by overriding its priority. If the sequence is that important you either need to find a way to ensure the sequence is performed by perhaps the use of a keyed database or perhaps see if the business has the opportunity for a more robust FIFO sort of arrangement i.e. MQ Server to MQServer for instance
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