Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Create a JMS connection

Configure your system to use Java Messaging Service (JMS) with a custom JMS activity or action.

Before you begin

Role required: connection_admin

About this task

The MID Server must have the correct JMS connection factories for your organization. Configure those values in the mid.property.jms.command.allowed_factory_names property, found in MID Server > Properties. The default values for this property can be changed to any value or comma-separated list of values that the third-party JMS provider advertises.

Procedure

  1. Navigate to Credentials & Connections > Connections.

  2. Click New, select JMS Connection, fill in the form, and then click Submit.

NameUnique name of this connection factory.
CredentialAdd credentials for JMS provider.
Connection AliasSelect the alias record to associate with this connection. Using an alias enables you to update the connection record without having to reconfigure any actions or activities that use the alias.
Initial Context FactoryName of the JNDI class that is used to create the InitialContext. Note: For example, to connect to ActiveMQ V5.10 (JMS Provider), the value is org.apache.activemq.jndi.ActiveMQInitialContextFactory.
Provider URLLocation of the running JMS provider installation. Note: For example, to connect to ActiveMQ V5.1: tcp://ipAddressOrHostName:61616.
ActiveCheck the box to make this an active connection.
DomainDetermine the domain the action or activity runs in.
Use MID serverCheck to use a MID Server for this action or activity. If selected, define fields in the Advanced MID Server Configuration section.
MID Selection

Option to select a specific MID Server or MID Cluster. Choose any one of the following options. - Auto-Select MID Server: Your ServiceNow instance selects the MID Server without manual input. - Specific MID Server: Your ServiceNow instance uses MID Server that you specify. - Specific MID Cluster: Your ServiceNow instance uses the MID Cluster that you specify.

A MID Cluster is a group of MID Servers that enables your ServiceNow instance to handle multiple integrations, and improve integration speed. For more information, see Configure a MID Server cluster.

This field is available when Use MID Server is checked.

MID ClusterThe specific MID Cluster you want to use. This field is available when Use MID Server is checked, and Specific MID Cluster is selected from the MID Selection list.
Capabilities

The capabilities the MID Server must support to be eligible for selection. The system runs the action or activity from a MID Server that supports the selected capabilities. Only displays if Use MID server is selected.

To learn more about how a MID Server is selected during runtime, see MID Server selection.

MID Application

The application the MID Server must support to be eligible for selection. The system runs the action from a MID Server that supports the selected application. Only displays if Use MID server is selected.

To learn more about how a MID Server is selected during runtime, see MID Server selection.

  1. Navigate to Connections & Credentials > Credentials.

  2. Click New, select JMS Credentials, and then provide the user name and password the MID should use to communicate with the JMS provider.

    For more information, see JMS credentials.

  3. Click Submit.

    You are ready to create a custom JMS action or activity.

Parent Topic:Get started with connections