2 Replies Latest reply on Jul 15, 2010 8:58 AM by Osian Hughes

    Persistent Consumer

    Osian Hughes Newbie

      Hi,

       

      This should be an easy answer for someone, as its been a while since I've touched JMS, at least 5 years.

       

      What I want to acheive is, by using the MessageListener interface, create a persistent consumer, that is not running inside an application server, like JBoss.  I have managed to do this by also implementing Runnable, and putting an infinite loop inside the run() method, but to me this isn't a very clean solution.

       

      Does anyone know of any examples using this method?  Or just some simple code to get me started is enough,

       

      Thanks,

      Osian