Configure an ActiveMQ connection

You can configure an ActiveMQ connection in the API Connection Manager.

This allows you to connect to an ActiveMQ queue or topic and to push and pull messages. For detailed information on ActiveMQ, see the ActiveMQ documentation.

Configure your connection

To configure an ActiveMQ connection, follow the steps below:

  1. Open the API Connection Manager.

  2. Add a new connection.

  3. Go to the Edit section.

  4. Specify a Name for your connection.

  1. From the Type drop-down menu, select ActiveMQ.

  2. Enter the Queue/Topic Name. This is the name of the ActiveMQ queue or topic you want to connect to.

  3. Specify the Host. This is the name or IP address of the ActiveMQ server host.

  4. Enter the Port to listen to.

  5. Select a Type from the drop-down menu:

    • Select Queue for a one-to-one messaging pattern.

    • Select Topic for one-to-many messaging.

  6. Select a Message Type from the drop-down menu:

    • Select JmsTextMessage for messages with a single text string.

    • Select JmsBytesMessage for messages that contain multiple types.

  7. Optionally, enable Peeking to retrieve messages from queues without consuming them.

  8. Optionally, enable Secure connection to establish a connection with a secure protocol.

  9. If your connection requires authentication, enter your Username and Password.

  10. If your connection requires it, enter the Certificate and Passphrase to authenticate the client.

  11. Optionally, configure XML and web service security.

Configure an Active MQ connection

You can now use your ActiveMQ Artemis connection for testing. For information on how to push and pull messages in API Scan, see chapter "Run JMS messages".