Package org.apache.activemq.junit
Class AbstractActiveMQProducerResource
java.lang.Object
org.junit.rules.ExternalResource
org.apache.activemq.junit.AbstractActiveMQClientResource
org.apache.activemq.junit.AbstractActiveMQProducerResource
- All Implemented Interfaces:
TestRule
- Direct Known Subclasses:
ActiveMQDynamicQueueSenderResource,ActiveMQDynamicTopicPublisherResource,ActiveMQQueueSenderResource,ActiveMQTopicPublisherResource
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractActiveMQProducerResource(String destinationName, URI brokerURI) AbstractActiveMQProducerResource(String destinationName, URI brokerURI, String userName, String password) AbstractActiveMQProducerResource(String destinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory) AbstractActiveMQProducerResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker) AbstractActiveMQProducerResource(URI brokerURI) AbstractActiveMQProducerResource(URI brokerURI, String userName, String password) AbstractActiveMQProducerResource(org.apache.activemq.ActiveMQConnectionFactory connectionFactory) AbstractActiveMQProducerResource(EmbeddedActiveMQBroker embeddedActiveMQBroker) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.BytesMessagesendMessage(byte[] body) voidsendMessage(jakarta.jms.Message message) jakarta.jms.ObjectMessagesendMessage(Serializable body) jakarta.jms.TextMessagesendMessage(String body) jakarta.jms.MapMessagesendMessage(Map<String, Object> body) jakarta.jms.BytesMessagesendMessageWithProperties(byte[] body, Map<String, Object> properties) jakarta.jms.ObjectMessagesendMessageWithProperties(Serializable body, Map<String, Object> properties) jakarta.jms.TextMessagesendMessageWithProperties(String body, Map<String, Object> properties) jakarta.jms.MapMessageMethods inherited from class org.apache.activemq.junit.AbstractActiveMQClientResource
after, before, createBytesMessage, createClient, createDestination, createMapMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createObjectMessage, createStreamMessage, createTextMessage, getBrokerURL, getClientId, getDestinationType, setMessageProperties, start, stopMethods inherited from class org.junit.rules.ExternalResource
apply
-
Constructor Details
-
AbstractActiveMQProducerResource
public AbstractActiveMQProducerResource(org.apache.activemq.ActiveMQConnectionFactory connectionFactory) -
AbstractActiveMQProducerResource
-
AbstractActiveMQProducerResource
-
AbstractActiveMQProducerResource
-
AbstractActiveMQProducerResource
public AbstractActiveMQProducerResource(String destinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory) -
AbstractActiveMQProducerResource
-
AbstractActiveMQProducerResource
public AbstractActiveMQProducerResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker) -
AbstractActiveMQProducerResource
-
-
Method Details
-
getDestinationName
- Overrides:
getDestinationNamein classAbstractActiveMQClientResource
-
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
- Throws:
jakarta.jms.JMSException
-
sendMessage
- Throws:
jakarta.jms.JMSException
-
sendMessage
- 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, throws jakarta.jms.JMSExceptionObject> properties) - Throws:
jakarta.jms.JMSException
-
sendMessageWithProperties
public jakarta.jms.ObjectMessage sendMessageWithProperties(Serializable body, Map<String, Object> properties) throws jakarta.jms.JMSException- Throws:
jakarta.jms.JMSException
-