0 Replies Latest reply on Jun 17, 2014 8:02 AM by Guillaume Grossetie

    Paginated list of (scheduled) messages as JSON

    Guillaume Grossetie Newbie

      Hi,

       

      I'm using the following code to list scheduled messages as JSON:

       

      ObjectName queueObjectName = getQueueObjectName(queueName);
      QueueControl queueControl = getQueueControl(queueObjectName);
      return queueControl.listScheduledMessagesAsJSON();
      
      

       

      This is working great but when there's a lot of messages (10K) the memory needed to create the JSON is too important.

      Is there a way to paginate/browse/stream the list of messages ? I think QueueBrowser is only for messages delivered to the queue and AFAIK scheduled message are not yet in the queue ?

       

      Thanks,

      Guillaume.