3 Replies Latest reply on Jun 27, 2014 5:42 AM by Steven Haddad

    HornetQ messages disappear as soon as I close my session

    Steven Haddad Newbie



      this question has probably been asked so many times you're tiredanswering it, but ...

      A long time ago, when using a MoM, I remember that if one was putting a message in a queue, another one would retrieve it later.


      I've built a "hornetqwrapper" class that works fine, but.


      If, in the same session, I put 4 messages in a queue, and then read 4 times, I retrieve my messages.

      If I put 4 messages in session 1, then close session 1, open session 2, read ... no message !