Skip navigation links
org.apache.activemq.artemis.junit

Class ActiveMQDynamicProducerResource

    • Constructor Detail

      • ActiveMQDynamicProducerResource

        public ActiveMQDynamicProducerResource(String url)
      • ActiveMQDynamicProducerResource

        public ActiveMQDynamicProducerResource(org.apache.activemq.artemis.api.core.client.ServerLocator serverLocator)
      • ActiveMQDynamicProducerResource

        public ActiveMQDynamicProducerResource(String url,
                                               org.apache.activemq.artemis.api.core.SimpleString address)
      • ActiveMQDynamicProducerResource

        public ActiveMQDynamicProducerResource(org.apache.activemq.artemis.api.core.client.ServerLocator serverLocator,
                                               org.apache.activemq.artemis.api.core.SimpleString address)
    • Method Detail

      • sendMessage

        public void sendMessage(org.apache.activemq.artemis.api.core.client.ClientMessage message)
        Send a ClientMessage to the default address on the server
        Overrides:
        sendMessage in class ActiveMQProducerResource
        Parameters:
        message - the message to send
      • sendMessage

        public void sendMessage(org.apache.activemq.artemis.api.core.SimpleString targetAddress,
                                org.apache.activemq.artemis.api.core.client.ClientMessage message)
        Send a ClientMessage to the specified address on the server
        Parameters:
        targetAddress - the target address
        message - the message to send
      • sendMessage

        public org.apache.activemq.artemis.api.core.client.ClientMessage sendMessage(org.apache.activemq.artemis.api.core.SimpleString targetAddress,
                                                                                     byte[] body)
        Create a new ClientMessage with the specified body and send to the specified address on the server
        Parameters:
        targetAddress - the target address
        body - the body for the new message
        Returns:
        the message that was sent
      • sendMessage

        public org.apache.activemq.artemis.api.core.client.ClientMessage sendMessage(org.apache.activemq.artemis.api.core.SimpleString targetAddress,
                                                                                     String body)
        Create a new ClientMessage with the specified body and send to the server
        Parameters:
        targetAddress - the target address
        body - the body for the new message
        Returns:
        the message that was sent
      • sendMessage

        public org.apache.activemq.artemis.api.core.client.ClientMessage sendMessage(org.apache.activemq.artemis.api.core.SimpleString targetAddress,
                                                                                     Map<String,Object> properties)
        Create a new ClientMessage with the specified properties and send to the server
        Parameters:
        targetAddress - the target address
        properties - the properties for the new message
        Returns:
        the message that was sent
      • sendMessage

        public org.apache.activemq.artemis.api.core.client.ClientMessage sendMessage(org.apache.activemq.artemis.api.core.SimpleString targetAddress,
                                                                                     byte[] body,
                                                                                     Map<String,Object> properties)
        Create a new ClientMessage with the specified body and and properties and send to the server
        Parameters:
        targetAddress - the target address
        properties - the properties for the new message
        Returns:
        the message that was sent
      • sendMessage

        public org.apache.activemq.artemis.api.core.client.ClientMessage sendMessage(org.apache.activemq.artemis.api.core.SimpleString targetAddress,
                                                                                     String body,
                                                                                     Map<String,Object> properties)
        Create a new ClientMessage with the specified body and and properties and send to the server
        Parameters:
        targetAddress - the target address
        properties - the properties for the new message
        Returns:
        the message that was sent

Copyright © 2023 The Apache Software Foundation. All Rights Reserved.