Create a JMS activity
Create a custom JMS activity to retrieve or send messages to external systems using the Java Messaging Service.
Before you begin
Role required: activity_creator or workflow_admin
About this task
- Using JNDI to find a ConnectionFactory object.
- Using JNDI to find one or more destination objects.
- Using the ConnectionFactory to create a JMS connection object.
- Using the JMS connection to create one or more JMS session objects.
- Using a JMS session and the destinations to create the MessageProducer and MessageConsumer objects.
- Starting the JMS connection to enable delivery or consumption of messages.
Procedure
What to do next
- Use auto-mapping to generate outputs and parsing rules
- If you do not use auto-mapping, you can manually create output variables and create parsing rules
Create a JMS connection for an Orchestration activity
Configure your system to use Java Messaging Service (JMS) with a custom Orchestration JMS activity.
Before you begin
Role required: 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 . 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
JMS template execution parameters
You use execution parameters to create the input process script in the Preprocessing form.
executionParam. prefix with all variables in this
table.| Name | Variable | Type | Usage |
|---|---|---|---|
| Jms ds | jms_ds | Reference | Selected JMS data source. |
| Destination type | destination_type | Enumerated | |
| Destination name | destination_name | String | |
| Message type | message_type | Enumerated | |
| Operation | operation | Enumerated | |
| Time out | time_out | Integer | Length of time to wait for the query to return results. |
| Custom headers | custom_headers | Array of JavaScript objects | |
| Message payload | message_payload | String | |
| Credential tag | credential_tag | String | List of required MID Server capabilities. |
| MidCapabilities | midCapabilities | String (comma separated) | |
| ValueCapabilities | valueCapabilities | Array of hashmap | Capability values used to select the MID Server. For more information, see
MID Server capabilities. If there are additional capabilities that are assigned by value, use this
example to customize the MID Server
selection: |
JMS template post-processing parameters
Use these parameters to create a post-processing script.
| Name | Variable | Type | Usage |
|---|---|---|---|
| Status | status | String | Status of the operation (Put or Get) on the JMS destination. |
| StandardHeaders | standardHeaders | String | All the standard headers, as specified by JMS, that are obtained as part of the JMS message during a Get operation. This field is applicable only for Get operations. |
| CustomHeaders | customHeaders | String | All custom headers added by a producer or publisher application that are obtained as part of the JMS message during a Get operation. This field is applicable only for Get operations. |
| MessagePayload | messagePayload | String | Message payload that is obtained as part of the JMS message during a Get operation. This field is applicable only for Get operations. |
| EccSysID | eccSysID | String | Contains the reference ID associated with the ECC Queue input message returned by the activity. |
| ErrorMessages | errorMessages | String | Contains any error messages retrieved from the JMS command. This value is null if there are no error messages. |