Author |
Message
|
sarathmattam |
Posted: Mon Jan 12, 2009 10:11 pm Post subject: Clearing a Message Queue using ESQL or from a Message Flow |
|
|
Voyager
Joined: 05 Sep 2008 Posts: 94
|
Dear All,
I have a requirement to clear a message queue before posting a message to a Queue. My flow is MQ-MQ . My output message should be of 4 KB. So if i get message of size lesser than that i should concatinate and send it . So i will keep on sending the messages to a TEMP queue where i will store the message and when the next update comes i should clear the existing one and post the new message ..
Can any one suggest a method to do it in ESQL or any configuration in the NODEor FLOW level.
Thanks a lot in advance..
Regards,
Sarath[/b] |
|
Back to top |
|
 |
sankritya |
Posted: Mon Jan 12, 2009 11:48 pm Post subject: |
|
|
Centurion
Joined: 14 Feb 2008 Posts: 100
|
You can use the MQ Get node for clearing the Queue |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 13, 2009 12:48 am Post subject: Re: Clearing a Message Queue using ESQL or from a Message Fl |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sarathmattam wrote: |
My output message should be of 4 KB. So if i get message of size lesser than that i should concatinate and send it |
This is a slightly odd requirement - the output message should be whatever size the data requires it to be. What's the reasoning here? What do you do if you've assembled a series of messages to 3.9Kb, then receive another 0.2Kb of data, breaking the 4Kb limit? What format is the output? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
sarathmattam |
Posted: Tue Jan 13, 2009 1:49 am Post subject: |
|
|
Voyager
Joined: 05 Sep 2008 Posts: 94
|
I wont break the message at 4 KB.. If it exceeds the limit i will send the 3.9 KB file.. The requirement is the file should not exceed 4 KB.. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 13, 2009 2:16 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sarathmattam wrote: |
The requirement is the file should not exceed 4 KB.. |
Yes, but why 4Kb? Why not the size of the output data (presumably less than 4Kb routinely)? Why concatinate it into an arbitary size? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jan 13, 2009 2:25 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Vitor wrote: |
sarathmattam wrote: |
The requirement is the file should not exceed 4 KB.. |
Yes, but why 4Kb? Why not the size of the output data (presumably less than 4Kb routinely)? Why concatinate it into an arbitary size? |
This looks very much like some kind of a batch processing requirement.
I wonder if he would gain anything from having a non broker process pick up the individual messages, concatenate up to 4Kb and send out.
Everytime the next message is not available send.
The other question is really about timeliness of such a requirement...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|