Class AbstractActiveMQProducerResource

All Implemented Interfaces:
TestRule
Direct Known Subclasses:
ActiveMQDynamicQueueSenderResource, ActiveMQDynamicTopicPublisherResource, ActiveMQQueueSenderResource, ActiveMQTopicPublisherResource

public abstract class AbstractActiveMQProducerResource extends AbstractActiveMQClientResource
  • Constructor Details

    • AbstractActiveMQProducerResource

      public AbstractActiveMQProducerResource(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
    • AbstractActiveMQProducerResource

      public AbstractActiveMQProducerResource(URI brokerURI)
    • AbstractActiveMQProducerResource

      public AbstractActiveMQProducerResource(EmbeddedActiveMQBroker embeddedActiveMQBroker)
    • AbstractActiveMQProducerResource

      public AbstractActiveMQProducerResource(URI brokerURI, String userName, String password)
    • AbstractActiveMQProducerResource

      public AbstractActiveMQProducerResource(String destinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
    • AbstractActiveMQProducerResource

      public AbstractActiveMQProducerResource(String destinationName, URI brokerURI)
    • AbstractActiveMQProducerResource

      public AbstractActiveMQProducerResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)
    • AbstractActiveMQProducerResource

      public AbstractActiveMQProducerResource(String destinationName, URI brokerURI, String userName, String password)
  • Method Details

    • getDestinationName

      public String getDestinationName()
      Overrides:
      getDestinationName in class AbstractActiveMQClientResource
    • sendMessage

      public void sendMessage(jakarta.jms.Message message) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • sendMessage

      public jakarta.jms.BytesMessage sendMessage(byte[] body) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • sendMessage

      public jakarta.jms.TextMessage sendMessage(String body) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • sendMessage

      public jakarta.jms.MapMessage sendMessage(Map<String,Object> body) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • sendMessage

      public jakarta.jms.ObjectMessage sendMessage(Serializable body) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • sendMessageWithProperties

      public jakarta.jms.BytesMessage sendMessageWithProperties(byte[] body, Map<String,Object> properties) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • sendMessageWithProperties

      public jakarta.jms.TextMessage sendMessageWithProperties(String body, Map<String,Object> properties) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • sendMessageWithProperties

      public jakarta.jms.MapMessage sendMessageWithProperties(Map<String,Object> body, Map<String,Object> properties) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException
    • sendMessageWithProperties

      public jakarta.jms.ObjectMessage sendMessageWithProperties(Serializable body, Map<String,Object> properties) throws jakarta.jms.JMSException
      Throws:
      jakarta.jms.JMSException