2 Replies Latest reply on May 24, 2011 5:49 AM by leosbitto

    Consuming a topic

    javajoy

      Hi All:

       

      I have a topic deployed on JBoss 6.  I want to consume that topic from a standalone client utilizing Spring JMS.  So far I have created a Listener that implements MessageListener.  But I have no clue how to configure Spring so that the listener receives the published messages.  Any example will be appreciated.

       

      Thanks in advance

        • 1. Consuming a topic
          clebert.suconic

          That's more a spring question. I don't see anything specific to HornetQ here.

           

           

          If you decide to use JMS.. there are tons of JMS examples on how to use a consumer.

           

           

          Try to ask something more specific and we will try to help you.

          • 2. Consuming a topic
            leosbitto

            Check the classes SimpleMessageListenerContainer and DefaultMessageListenerContainer from the package org.springframework.jms.listener. There is a lot of documentation and examples for these Spring classes available on the internet.

            1 of 1 people found this helpful