Class EmbeddedJMSDelegate
- All Implemented Interfaces:
EmbeddedJMSOperations<EmbeddedJMSDelegate>
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDeprecated.Create a default EmbeddedJMSResourceprotectedEmbeddedJMSDelegate(boolean useNetty) Deprecated.Create a default EmbeddedJMSResourceprotectedEmbeddedJMSDelegate(int serverId) Deprecated.Create a default EmbeddedJMSResource with the specified server idprotectedEmbeddedJMSDelegate(String filename) Deprecated.Create an EmbeddedJMSResource with the specified configuration fileprotectedEmbeddedJMSDelegate(String serverConfigurationFileName, String jmsConfigurationFileName) Deprecated.Create an EmbeddedJMSResource with the specified configuration fileprotectedEmbeddedJMSDelegate(Configuration configuration, JMSConfiguration jmsConfiguration) Deprecated.Create an EmbeddedJMSResource with the specified configurations -
Method Summary
Modifier and TypeMethodDescriptionaddAcceptor(String name, String uri) Deprecated.The acceptor usedjavax.jms.BytesMessageDeprecated.javax.jms.MapMessageDeprecated.javax.jms.BytesMessagecreateMessage(byte[] body) Deprecated.javax.jms.BytesMessagecreateMessage(byte[] body, Map<String, Object> properties) Deprecated.javax.jms.ObjectMessagecreateMessage(Serializable body) Deprecated.javax.jms.ObjectMessagecreateMessage(Serializable body, Map<String, Object> properties) Deprecated.javax.jms.TextMessagecreateMessage(String body) Deprecated.javax.jms.TextMessagecreateMessage(String body, Map<String, Object> properties) Deprecated.javax.jms.MapMessagecreateMessage(Map<String, Object> body) Deprecated.javax.jms.MapMessageDeprecated.javax.jms.ObjectMessageDeprecated.javax.jms.StreamMessageDeprecated.javax.jms.TextMessageDeprecated.org.apache.activemq.artemis.core.server.QueuegetDestinationQueue(String destinationName) Deprecated.Get the Queue corresponding to a JMS Destination.Deprecated.Get the EmbeddedJMS server.longgetMessageCount(String destinationName) Deprecated.Get the number of messages in a specific JMS Destination.Deprecated.Get the name of the EmbeddedJMS serverList<org.apache.activemq.artemis.core.server.Queue> getTopicQueues(String topicName) Deprecated.Get the Queues corresponding to a JMS Topic.getVmURL()Deprecated.Get the VM URL for the embedded EmbeddedActiveMQ serverjavax.jms.BytesMessagepeekBytesMessage(String destinationName) Deprecated.javax.jms.MapMessagepeekMapMessage(String destinationName) Deprecated.javax.jms.MessagepeekMessage(String destinationName) Deprecated.javax.jms.ObjectMessagepeekObjectMessage(String destinationName) Deprecated.javax.jms.StreamMessagepeekStreamMessage(String destinationName) Deprecated.javax.jms.TextMessagepeekTextMessage(String destinationName) Deprecated.javax.jms.BytesMessagepushMessage(String destinationName, byte[] body) Deprecated.javax.jms.ObjectMessagepushMessage(String destinationName, Serializable body) Deprecated.javax.jms.TextMessagepushMessage(String destinationName, String body) Deprecated.javax.jms.MapMessagepushMessage(String destinationName, Map<String, Object> body) Deprecated.voidpushMessage(String destinationName, javax.jms.Message message) Deprecated.javax.jms.BytesMessagepushMessageWithProperties(String destinationName, byte[] body, Map<String, Object> properties) Deprecated.javax.jms.ObjectMessagepushMessageWithProperties(String destinationName, Serializable body, Map<String, Object> properties) Deprecated.javax.jms.TextMessageDeprecated.javax.jms.MapMessagepushMessageWithProperties(String destinationName, Map<String, Object> body, Map<String, Object> properties) Deprecated.static voidsetMessageProperties(javax.jms.Message message, Map<String, Object> properties) Deprecated.voidstart()Deprecated.Start the embedded EmbeddedJMSResource.voidstop()Deprecated.Stop the embedded ActiveMQ broker, blocking until the broker has stopped.
-
Constructor Details
-
EmbeddedJMSDelegate
protected EmbeddedJMSDelegate()Deprecated.Create a default EmbeddedJMSResource -
EmbeddedJMSDelegate
protected EmbeddedJMSDelegate(boolean useNetty) Deprecated.Create a default EmbeddedJMSResource -
EmbeddedJMSDelegate
protected EmbeddedJMSDelegate(int serverId) Deprecated.Create a default EmbeddedJMSResource with the specified server id -
EmbeddedJMSDelegate
Deprecated.Create an EmbeddedJMSResource with the specified configurations- Parameters:
configuration- ActiveMQServer configurationjmsConfiguration- JMSServerManager configuration
-
EmbeddedJMSDelegate
Deprecated.Create an EmbeddedJMSResource with the specified configuration file- Parameters:
filename- configuration file name
-
EmbeddedJMSDelegate
Deprecated.Create an EmbeddedJMSResource with the specified configuration file- Parameters:
serverConfigurationFileName- ActiveMQServer configuration file namejmsConfigurationFileName- JMSServerManager configuration file name
-
-
Method Details
-
addAcceptor
Deprecated.The acceptor used- Specified by:
addAcceptorin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>- Throws:
Exception
-
setMessageProperties
-
start
public void start()Deprecated.Start the embedded EmbeddedJMSResource.The server will normally be started by JUnit using the before() method. This method allows the server to be started manually to support advanced testing scenarios.
- Specified by:
startin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
stop
public void stop()Deprecated.Stop the embedded ActiveMQ broker, blocking until the broker has stopped.The broker will normally be stopped by JUnit using the after() method. This method allows the broker to be stopped manually to support advanced testing scenarios.
- Specified by:
stopin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
getJmsServer
Deprecated.Description copied from interface:EmbeddedJMSOperationsGet the EmbeddedJMS server.This may be required for advanced configuration of the EmbeddedJMS server.
- Specified by:
getJmsServerin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
getServerName
Deprecated.Description copied from interface:EmbeddedJMSOperationsGet the name of the EmbeddedJMS server- Specified by:
getServerNamein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>- Returns:
- name of the server
-
getVmURL
Deprecated.Description copied from interface:EmbeddedJMSOperationsGet the VM URL for the embedded EmbeddedActiveMQ server- Specified by:
getVmURLin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>- Returns:
- the VM URL for the embedded server
-
getDestinationQueue
Deprecated.Description copied from interface:EmbeddedJMSOperationsGet the Queue corresponding to a JMS Destination.The full name of the JMS destination including the prefix should be provided - i.e. queue://myQueue or topic://myTopic. If the destination type prefix is not included in the destination name, a prefix of "queue://" is assumed.
- Specified by:
getDestinationQueuein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>- Parameters:
destinationName- the full name of the JMS Destination- Returns:
- the number of messages in the JMS Destination
-
getTopicQueues
Deprecated.Description copied from interface:EmbeddedJMSOperationsGet the Queues corresponding to a JMS Topic.The full name of the JMS Topic including the prefix should be provided - i.e. topic://myTopic. If the destination type prefix is not included in the destination name, a prefix of "topic://" is assumed.
- Specified by:
getTopicQueuesin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>- Parameters:
topicName- the full name of the JMS Destination- Returns:
- the number of messages in the JMS Destination
-
getMessageCount
Deprecated.Description copied from interface:EmbeddedJMSOperationsGet the number of messages in a specific JMS Destination.The full name of the JMS destination including the prefix should be provided - i.e. queue://myQueue or topic://myTopic. If the destination type prefix is not included in the destination name, a prefix of "queue://" is assumed. NOTE: For JMS Topics, this returned count will be the total number of messages for all subscribers. For example, if there are two subscribers on the topic and a single message is published, the returned count will be two (one message for each subscriber).
- Specified by:
getMessageCountin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>- Parameters:
destinationName- the full name of the JMS Destination- Returns:
- the number of messages in the JMS Destination
-
createBytesMessage
public javax.jms.BytesMessage createBytesMessage()Deprecated.- Specified by:
createBytesMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createTextMessage
public javax.jms.TextMessage createTextMessage()Deprecated.- Specified by:
createTextMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMapMessage
public javax.jms.MapMessage createMapMessage()Deprecated.- Specified by:
createMapMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createObjectMessage
public javax.jms.ObjectMessage createObjectMessage()Deprecated.- Specified by:
createObjectMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createStreamMessage
public javax.jms.StreamMessage createStreamMessage()Deprecated.- Specified by:
createStreamMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
public javax.jms.BytesMessage createMessage(byte[] body) Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
Deprecated.- Specified by:
pushMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
Deprecated.- Specified by:
pushMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
Deprecated.- Specified by:
pushMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
Deprecated.- Specified by:
pushMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
Deprecated.- Specified by:
pushMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessageWithProperties
public javax.jms.BytesMessage pushMessageWithProperties(String destinationName, byte[] body, Map<String, Object> properties) Deprecated.- Specified by:
pushMessageWithPropertiesin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessageWithProperties
public javax.jms.TextMessage pushMessageWithProperties(String destinationName, String body, Map<String, Object> properties) Deprecated.- Specified by:
pushMessageWithPropertiesin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessageWithProperties
public javax.jms.MapMessage pushMessageWithProperties(String destinationName, Map<String, Object> body, Map<String, Object> properties) Deprecated.- Specified by:
pushMessageWithPropertiesin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessageWithProperties
public javax.jms.ObjectMessage pushMessageWithProperties(String destinationName, Serializable body, Map<String, Object> properties) Deprecated.- Specified by:
pushMessageWithPropertiesin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekMessage
Deprecated.- Specified by:
peekMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekBytesMessage
Deprecated.- Specified by:
peekBytesMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekTextMessage
Deprecated.- Specified by:
peekTextMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekMapMessage
Deprecated.- Specified by:
peekMapMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekObjectMessage
Deprecated.- Specified by:
peekObjectMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekStreamMessage
Deprecated.- Specified by:
peekStreamMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
EmbeddedActiveMQDelegateinstead