Package org.apache.activemq.junit
Class ActiveMQDynamicTopicPublisherResource
- java.lang.Object
-
- org.junit.rules.ExternalResource
-
- org.apache.activemq.junit.AbstractActiveMQClientResource
-
- org.apache.activemq.junit.AbstractActiveMQProducerResource
-
- org.apache.activemq.junit.ActiveMQDynamicTopicPublisherResource
-
- All Implemented Interfaces:
org.junit.rules.TestRule
public class ActiveMQDynamicTopicPublisherResource extends AbstractActiveMQProducerResource
-
-
Constructor Summary
Constructors Constructor Description ActiveMQDynamicTopicPublisherResource(String defaultDestinationName, URI brokerURI)ActiveMQDynamicTopicPublisherResource(String defaultDestinationName, URI brokerURI, String userName, String password)ActiveMQDynamicTopicPublisherResource(String defaultDestinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory)ActiveMQDynamicTopicPublisherResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)ActiveMQDynamicTopicPublisherResource(URI brokerURI)ActiveMQDynamicTopicPublisherResource(URI brokerURI, String userName, String password)ActiveMQDynamicTopicPublisherResource(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)ActiveMQDynamicTopicPublisherResource(EmbeddedActiveMQBroker embeddedActiveMQBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateClient()bytegetDestinationType()javax.jms.BytesMessagesendMessage(String destinationName, byte[] body)javax.jms.ObjectMessagesendMessage(String destinationName, Serializable body)javax.jms.TextMessagesendMessage(String destinationName, String body)javax.jms.MapMessagesendMessage(String destinationName, Map<String,Object> body)voidsendMessage(String destinationName, javax.jms.Message message)voidsendMessage(javax.jms.Message message)javax.jms.BytesMessagesendMessageWithProperties(String destinationName, byte[] body, Map<String,Object> properties)javax.jms.ObjectMessagesendMessageWithProperties(String destinationName, Serializable body, Map<String,Object> properties)javax.jms.TextMessagesendMessageWithProperties(String destinationName, String body, Map<String,Object> properties)javax.jms.MapMessagesendMessageWithProperties(String destinationName, Map<String,Object> body, Map<String,Object> properties)-
Methods inherited from class org.apache.activemq.junit.AbstractActiveMQProducerResource
getDestinationName, sendMessage, sendMessage, sendMessage, sendMessage, sendMessageWithProperties, sendMessageWithProperties, sendMessageWithProperties, sendMessageWithProperties
-
Methods inherited from class org.apache.activemq.junit.AbstractActiveMQClientResource
after, before, createBytesMessage, createDestination, createMapMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createMessage, createObjectMessage, createStreamMessage, createTextMessage, getBrokerURL, getClientId, setMessageProperties, start, stop
-
-
-
-
Constructor Detail
-
ActiveMQDynamicTopicPublisherResource
public ActiveMQDynamicTopicPublisherResource(org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
-
ActiveMQDynamicTopicPublisherResource
public ActiveMQDynamicTopicPublisherResource(URI brokerURI)
-
ActiveMQDynamicTopicPublisherResource
public ActiveMQDynamicTopicPublisherResource(EmbeddedActiveMQBroker embeddedActiveMQBroker)
-
ActiveMQDynamicTopicPublisherResource
public ActiveMQDynamicTopicPublisherResource(URI brokerURI, String userName, String password)
-
ActiveMQDynamicTopicPublisherResource
public ActiveMQDynamicTopicPublisherResource(String defaultDestinationName, org.apache.activemq.ActiveMQConnectionFactory connectionFactory)
-
ActiveMQDynamicTopicPublisherResource
public ActiveMQDynamicTopicPublisherResource(String defaultDestinationName, URI brokerURI)
-
ActiveMQDynamicTopicPublisherResource
public ActiveMQDynamicTopicPublisherResource(String destinationName, EmbeddedActiveMQBroker embeddedActiveMQBroker)
-
-
Method Detail
-
createClient
protected void createClient() throws javax.jms.JMSException- Specified by:
createClientin classAbstractActiveMQClientResource- Throws:
javax.jms.JMSException
-
getDestinationType
public byte getDestinationType()
- Specified by:
getDestinationTypein classAbstractActiveMQClientResource
-
sendMessage
public void sendMessage(javax.jms.Message message) throws javax.jms.JMSException- Overrides:
sendMessagein classAbstractActiveMQProducerResource- Throws:
javax.jms.JMSException
-
sendMessage
public void sendMessage(String destinationName, javax.jms.Message message) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
sendMessage
public javax.jms.BytesMessage sendMessage(String destinationName, byte[] body) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
sendMessage
public javax.jms.TextMessage sendMessage(String destinationName, String body) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
sendMessage
public javax.jms.MapMessage sendMessage(String destinationName, Map<String,Object> body) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
sendMessage
public javax.jms.ObjectMessage sendMessage(String destinationName, Serializable body) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
sendMessageWithProperties
public javax.jms.BytesMessage sendMessageWithProperties(String destinationName, byte[] body, Map<String,Object> properties) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
sendMessageWithProperties
public javax.jms.TextMessage sendMessageWithProperties(String destinationName, String body, Map<String,Object> properties) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
sendMessageWithProperties
public javax.jms.MapMessage sendMessageWithProperties(String destinationName, Map<String,Object> body, Map<String,Object> properties) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
sendMessageWithProperties
public javax.jms.ObjectMessage sendMessageWithProperties(String destinationName, Serializable body, Map<String,Object> properties) throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
-
-