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:
  • Method Details

    • 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.

    • 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.MapMessage createMessage(Map<String,Object> 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.TextMessage pushMessage(String destinationName, String 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.