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 » Clearing a Message Queue using ESQL or from a Message Flow

Post new topic  Reply to topic
 Clearing a Message Queue using ESQL or from a Message Flow « View previous topic :: View next topic » 
Author Message
sarathmattam
PostPosted: Mon Jan 12, 2009 10:11 pm    Post subject: Clearing a Message Queue using ESQL or from a Message Flow Reply with quote

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
View user's profile Send private message
sankritya
PostPosted: Mon Jan 12, 2009 11:48 pm    Post subject: Reply with quote

Centurion

Joined: 14 Feb 2008
Posts: 100

You can use the MQ Get node for clearing the Queue
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Jan 13, 2009 12:48 am    Post subject: Re: Clearing a Message Queue using ESQL or from a Message Fl Reply with quote

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
View user's profile Send private message
sarathmattam
PostPosted: Tue Jan 13, 2009 1:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Jan 13, 2009 2:16 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Jan 13, 2009 2:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Clearing a Message Queue using ESQL or from a Message Flow
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.