Class TextReverserService

  • All Implemented Interfaces:
    javax.jms.MessageListener

    public class TextReverserService
    extends java.lang.Object
    implements javax.jms.MessageListener
    A TextReverserService is a MessageListener which consume text messages from a destination and replies with text messages containing the reversed text. It sends replies to the destination specified by the JMS ReplyTo header of the consumed messages.
    • Constructor Summary

      Constructors 
      Constructor Description
      TextReverserService​(javax.jms.ConnectionFactory cf, javax.jms.Destination destination)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void onMessage​(javax.jms.Message request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TextReverserService

        public TextReverserService​(javax.jms.ConnectionFactory cf,
                                   javax.jms.Destination destination)
                            throws javax.jms.JMSException
        Throws:
        javax.jms.JMSException
    • Method Detail

      • onMessage

        public void onMessage​(javax.jms.Message request)
        Specified by:
        onMessage in interface javax.jms.MessageListener
      • close

        public void close()