Class JmsSyncConsumer

  • All Implemented Interfaces:
    com.consol.citrus.messaging.Consumer, com.consol.citrus.messaging.Producer, com.consol.citrus.messaging.ReplyProducer, com.consol.citrus.messaging.SelectiveConsumer

    public class JmsSyncConsumer
    extends JmsConsumer
    implements com.consol.citrus.messaging.ReplyProducer
    Since:
    1.4
    Author:
    Christoph Deppisch
    • Constructor Detail

      • JmsSyncConsumer

        public JmsSyncConsumer​(String name,
                               JmsSyncEndpointConfiguration endpointConfiguration)
        Default constructor using endpoint configuration.
        Parameters:
        name -
        endpointConfiguration -
    • Method Detail

      • receive

        public Message receive​(String selector,
                               TestContext context,
                               long timeout)
        Specified by:
        receive in interface com.consol.citrus.messaging.SelectiveConsumer
        Overrides:
        receive in class JmsConsumer
      • send

        public void send​(Message message,
                         TestContext context)
        Specified by:
        send in interface com.consol.citrus.messaging.Producer
      • saveReplyDestination

        public void saveReplyDestination​(JmsMessage jmsMessage,
                                         TestContext context)
        Store the reply destination either straight forward or with a given message correlation key.
        Parameters:
        jmsMessage -
        context -
      • getCorrelationManager

        public CorrelationManager<javax.jms.Destination> getCorrelationManager()
        Gets the correlation manager.
        Returns:
      • setCorrelationManager

        public void setCorrelationManager​(CorrelationManager<javax.jms.Destination> correlationManager)
        Sets the correlation manager.
        Parameters:
        correlationManager -