Class JmsSyncProducer

java.lang.Object
org.citrusframework.jms.endpoint.JmsProducer
org.citrusframework.jms.endpoint.JmsSyncProducer
All Implemented Interfaces:
org.citrusframework.messaging.Consumer, org.citrusframework.messaging.Producer, org.citrusframework.messaging.ReplyConsumer, org.citrusframework.messaging.SelectiveConsumer

public class JmsSyncProducer extends JmsProducer implements org.citrusframework.messaging.ReplyConsumer
Since:
1.4
Author:
Christoph Deppisch
  • Constructor Details

    • JmsSyncProducer

      public JmsSyncProducer(String name, JmsSyncEndpointConfiguration endpointConfiguration)
      Default constructor using endpoint configuration.
      Parameters:
      name -
      endpointConfiguration -
  • Method Details

    • send

      public void send(Message message, TestContext context)
      Specified by:
      send in interface org.citrusframework.messaging.Producer
      Overrides:
      send in class JmsProducer
    • receive

      public Message receive(TestContext context)
      Specified by:
      receive in interface org.citrusframework.messaging.Consumer
    • receive

      public Message receive(String selector, TestContext context)
      Specified by:
      receive in interface org.citrusframework.messaging.SelectiveConsumer
    • receive

      public Message receive(TestContext context, long timeout)
      Specified by:
      receive in interface org.citrusframework.messaging.Consumer
    • receive

      public Message receive(String selector, TestContext context, long timeout)
      Specified by:
      receive in interface org.citrusframework.messaging.SelectiveConsumer
    • createConnection

      protected void createConnection() throws jakarta.jms.JMSException
      Create new JMS connection.
      Throws:
      jakarta.jms.JMSException
    • createSession

      protected void createSession(jakarta.jms.Connection connection) throws jakarta.jms.JMSException
      Create new JMS session.
      Parameters:
      connection - to use for session creation.
      Throws:
      jakarta.jms.JMSException
    • destroy

      public void destroy()
      Destroy method closing JMS session and connection
    • getCorrelationManager

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

      public void setCorrelationManager(CorrelationManager<Message> correlationManager)
      Sets the correlation manager.
      Parameters:
      correlationManager -