Nathaniel:- Yes, I do understand that any class I define can implement MessageListener interface. My question was, what is the general way of making this component running in memory so whenever message comes onMessage gets called. I wanted to know how you keep this
thread running into memory continiously looking for message? Making it servlet or something else? any pointers would be much appreciated.