8 Replies Latest reply: May 10, 2012 5:33 PM by Clebert Suconic RSS

    Check blocked messages before close session

    Adrien Ruffie Newbie

      I have a good question, before perform following line:

       

                                                        clientSession.commit();

                                                        clientConsumer.close();

                                                        clientSession.deleteQueue(subscriberID);

                                                        clientSession.stop();

                                                        clientSession.close();

       

      One way to know if messages are waiting in a queue (blocked messages for example), and a way to force

      the sending/receving of the last messages present ?

       

       

      Other question:

      I use a MessageHandler and onMessage(), in previous method I'm forced to call clientSession.commit() and clientMessage.acknowledge() ?

      What commit() and acknowledge() really do ? And what the "in order to use" previous method can be served/used ?

       

      Thank