Interface EmbeddedJMSOperations<I>
-
- Type Parameters:
I- implementing type
- All Known Implementing Classes:
EmbeddedJMSDelegate
@Deprecated public interface EmbeddedJMSOperations<I>
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description IaddAcceptor(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.voidstart()Deprecated.Start the embedded EmbeddedJMSResource.voidstop()Deprecated.Stop the embedded ActiveMQ broker, blocking until the broker has stopped.
-
-
-
Method Detail
-
addAcceptor
I addAcceptor(String name, String uri) throws Exception
Deprecated.The acceptor used- Throws:
Exception
-
start
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.
-
stop
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.
-
getJmsServer
EmbeddedJMS getJmsServer()
Deprecated.Get the EmbeddedJMS server.This may be required for advanced configuration of the EmbeddedJMS server.
- Returns:
-
getServerName
String getServerName()
Deprecated.Get the name of the EmbeddedJMS server- Returns:
- name of the server
-
getVmURL
String getVmURL()
Deprecated.Get the VM URL for the embedded EmbeddedActiveMQ server- Returns:
- the VM URL for the embedded server
-
getDestinationQueue
org.apache.activemq.artemis.core.server.Queue getDestinationQueue(String destinationName)
Deprecated.Get 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.
- Parameters:
destinationName- the full name of the JMS Destination- Returns:
- the number of messages in the JMS Destination
-
getTopicQueues
List<org.apache.activemq.artemis.core.server.Queue> getTopicQueues(String topicName)
Deprecated.Get 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.
- Parameters:
topicName- the full name of the JMS Destination- Returns:
- the number of messages in the JMS Destination
-
getMessageCount
long getMessageCount(String destinationName)
Deprecated.Get 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).
- Parameters:
destinationName- the full name of the JMS Destination- Returns:
- the number of messages in the JMS Destination
-
createBytesMessage
javax.jms.BytesMessage createBytesMessage()
Deprecated.
-
createTextMessage
javax.jms.TextMessage createTextMessage()
Deprecated.
-
createMapMessage
javax.jms.MapMessage createMapMessage()
Deprecated.
-
createObjectMessage
javax.jms.ObjectMessage createObjectMessage()
Deprecated.
-
createStreamMessage
javax.jms.StreamMessage createStreamMessage()
Deprecated.
-
createMessage
javax.jms.BytesMessage createMessage(byte[] body)
Deprecated.
-
createMessage
javax.jms.TextMessage createMessage(String body)
Deprecated.
-
createMessage
javax.jms.ObjectMessage createMessage(Serializable body)
Deprecated.
-
createMessage
javax.jms.BytesMessage createMessage(byte[] body, Map<String,Object> properties)Deprecated.
-
createMessage
javax.jms.TextMessage createMessage(String body, Map<String,Object> properties)
Deprecated.
-
createMessage
javax.jms.MapMessage createMessage(Map<String,Object> body, Map<String,Object> properties)
Deprecated.
-
createMessage
javax.jms.ObjectMessage createMessage(Serializable body, Map<String,Object> properties)
Deprecated.
-
pushMessage
void pushMessage(String destinationName, javax.jms.Message message)
Deprecated.
-
pushMessage
javax.jms.BytesMessage pushMessage(String destinationName, byte[] body)
Deprecated.
-
pushMessage
javax.jms.MapMessage pushMessage(String destinationName, Map<String,Object> body)
Deprecated.
-
pushMessage
javax.jms.ObjectMessage pushMessage(String destinationName, Serializable body)
Deprecated.
-
pushMessageWithProperties
javax.jms.BytesMessage pushMessageWithProperties(String destinationName, byte[] body, Map<String,Object> properties)
Deprecated.
-
pushMessageWithProperties
javax.jms.TextMessage pushMessageWithProperties(String destinationName, String body, Map<String,Object> properties)
Deprecated.
-
pushMessageWithProperties
javax.jms.MapMessage pushMessageWithProperties(String destinationName, Map<String,Object> body, Map<String,Object> properties)
Deprecated.
-
pushMessageWithProperties
javax.jms.ObjectMessage pushMessageWithProperties(String destinationName, Serializable body, Map<String,Object> properties)
Deprecated.
-
peekMessage
javax.jms.Message peekMessage(String destinationName)
Deprecated.
-
peekBytesMessage
javax.jms.BytesMessage peekBytesMessage(String destinationName)
Deprecated.
-
peekTextMessage
javax.jms.TextMessage peekTextMessage(String destinationName)
Deprecated.
-
peekMapMessage
javax.jms.MapMessage peekMapMessage(String destinationName)
Deprecated.
-
peekObjectMessage
javax.jms.ObjectMessage peekObjectMessage(String destinationName)
Deprecated.
-
peekStreamMessage
javax.jms.StreamMessage peekStreamMessage(String destinationName)
Deprecated.
-
-