how to integrate a JMS queue publish/subscribe model

Hi,
         do we have any exapmles on how can we integrate JMS, pushing messages and writing Listeners.