Class EmbeddedJMSDelegate
- java.lang.Object
-
- org.apache.activemq.artemis.junit.EmbeddedJMSDelegate
-
- All Implemented Interfaces:
EmbeddedJMSOperations<EmbeddedJMSDelegate>
@Deprecated public class EmbeddedJMSDelegate extends Object implements EmbeddedJMSOperations<EmbeddedJMSDelegate>
Deprecated.Deprecated in favor of EmbeddedActiveMQDelegate. Since Artemis 2.0 all JMS specific broker management classes, interfaces, and methods have been deprecated in favor of their more general counter-parts.- See Also:
EmbeddedActiveMQDelegate
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEmbeddedJMSDelegate.EmbeddedJMSResourceExceptionDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedEmbeddedJMSDelegate()Deprecated.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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description EmbeddedJMSDelegateaddAcceptor(String name, String uri)Deprecated.The acceptor usedjavax.jms.BytesMessagecreateBytesMessage()Deprecated.javax.jms.MapMessagecreateMapMessage()Deprecated.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.MapMessagecreateMessage(Map<String,Object> body, Map<String,Object> properties)Deprecated.javax.jms.ObjectMessagecreateObjectMessage()Deprecated.javax.jms.StreamMessagecreateStreamMessage()Deprecated.javax.jms.TextMessagecreateTextMessage()Deprecated.org.apache.activemq.artemis.core.server.QueuegetDestinationQueue(String destinationName)Deprecated.Get the Queue corresponding to a JMS Destination.EmbeddedJMSgetJmsServer()Deprecated.Get the EmbeddedJMS server.longgetMessageCount(String destinationName)Deprecated.Get the number of messages in a specific JMS Destination.StringgetServerName()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.StringgetVmURL()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.TextMessagepushMessageWithProperties(String destinationName, String body, Map<String,Object> properties)Deprecated.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 Detail
-
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
protected EmbeddedJMSDelegate(Configuration configuration, JMSConfiguration jmsConfiguration)
Deprecated.Create an EmbeddedJMSResource with the specified configurations- Parameters:
configuration- ActiveMQServer configurationjmsConfiguration- JMSServerManager configuration
-
EmbeddedJMSDelegate
protected EmbeddedJMSDelegate(String filename)
Deprecated.Create an EmbeddedJMSResource with the specified configuration file- Parameters:
filename- configuration file name
-
EmbeddedJMSDelegate
protected EmbeddedJMSDelegate(String serverConfigurationFileName, String jmsConfigurationFileName)
Deprecated.Create an EmbeddedJMSResource with the specified configuration file- Parameters:
serverConfigurationFileName- ActiveMQServer configuration file namejmsConfigurationFileName- JMSServerManager configuration file name
-
-
Method Detail
-
addAcceptor
public EmbeddedJMSDelegate addAcceptor(String name, String uri) throws Exception
Deprecated.The acceptor used- Specified by:
addAcceptorin interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>- Throws:
Exception
-
setMessageProperties
public static void setMessageProperties(javax.jms.Message message, Map<String,Object> properties)Deprecated.
-
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
public EmbeddedJMS 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>- Returns:
-
getServerName
public String getServerName()
Deprecated.Description copied from interface:EmbeddedJMSOperationsGet the name of the EmbeddedJMS server- Specified by:
getServerNamein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>- Returns:
- name of the server
-
getVmURL
public String 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
public org.apache.activemq.artemis.core.server.Queue getDestinationQueue(String destinationName)
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
public List<org.apache.activemq.artemis.core.server.Queue> getTopicQueues(String topicName)
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
public long getMessageCount(String destinationName)
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
public javax.jms.TextMessage createMessage(String body)
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
public javax.jms.MapMessage createMessage(Map<String,Object> body)
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
public javax.jms.ObjectMessage createMessage(Serializable body)
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
public javax.jms.BytesMessage createMessage(byte[] body, Map<String,Object> properties)Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
public javax.jms.TextMessage createMessage(String body, Map<String,Object> properties)
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
public javax.jms.MapMessage createMessage(Map<String,Object> body, Map<String,Object> properties)
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
createMessage
public javax.jms.ObjectMessage createMessage(Serializable body, Map<String,Object> properties)
Deprecated.- Specified by:
createMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
public void pushMessage(String destinationName, javax.jms.Message message)
Deprecated.- Specified by:
pushMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
public javax.jms.BytesMessage pushMessage(String destinationName, byte[] body)
Deprecated.- Specified by:
pushMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
public javax.jms.TextMessage pushMessage(String destinationName, String body)
Deprecated.- Specified by:
pushMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
public javax.jms.MapMessage pushMessage(String destinationName, Map<String,Object> body)
Deprecated.- Specified by:
pushMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
pushMessage
public javax.jms.ObjectMessage pushMessage(String destinationName, Serializable body)
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
public javax.jms.Message peekMessage(String destinationName)
Deprecated.- Specified by:
peekMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekBytesMessage
public javax.jms.BytesMessage peekBytesMessage(String destinationName)
Deprecated.- Specified by:
peekBytesMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekTextMessage
public javax.jms.TextMessage peekTextMessage(String destinationName)
Deprecated.- Specified by:
peekTextMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekMapMessage
public javax.jms.MapMessage peekMapMessage(String destinationName)
Deprecated.- Specified by:
peekMapMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekObjectMessage
public javax.jms.ObjectMessage peekObjectMessage(String destinationName)
Deprecated.- Specified by:
peekObjectMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
peekStreamMessage
public javax.jms.StreamMessage peekStreamMessage(String destinationName)
Deprecated.- Specified by:
peekStreamMessagein interfaceEmbeddedJMSOperations<EmbeddedJMSDelegate>
-
-