Back Forward Connect-JMS method

Methods and instructions by function

C-485 03-04 Use the Connect-JMS method to send a JMS message to an external system using the Java Message Service application programmer interface. SOLOM 2/14/05

Parameters

This method operates on a named clipboard page that is the source and destination of data mappings. Make sure the Step Page column that calls this method contains the non-blank name of such a page. B-3575

This method has two parameters:

Parameter

Description

ServiceName

Enter the Service Name (second key part) of a Connect JMS rule (Rule-Connect-JMS rule type). The system uses the class of the step page as the first key part.

RunInParallel

Select if this connector is intended to run in parallel as a child requestor of the current requestor. If selected, use the Connect-Wait method later in the current or a follow-on activity to access results from the connector.

Results

The Connect-JMS method works as follows:

  1. Using rule resolution, locates the Connect JMS rule identified by the ServiceName parameter and the class of the step page or primary page.
  2. Uses request information to assemble a request JMS message.
  3. If the step page does not exist, creates a new page, of the class identified in the Pages & Classes tab. SDAS/OLSOK 12/05/05 and SR-210 and B-15556 rejected
  4. C-757 Checks whether simulation is in force for this rule. If so, calls the simulation stub activity.
  5. If simulation is not in force, sends a JMS message, in a separate requestor if the RunInParallel box is selected. (This temporary requestor has the same access group and clipboard as the original. At most 10 such child requestor sessions can be active at once.) GAJNJ 4/13/04maxRequestorChildren? B-18807
  6. Processes the response when it is received.

Checking the method status

This method updates the pxMethodStatus property. See How to test method results using a transition.

CautionDesign the activity to detect and handle exceptions. If the Connect-JMS method with the RunInParallel checkbox selected fails in a way that causes the Connect-Wait method to be skipped, the child requestor can be left hanging. If the limit of parallel requestors is then eventually reached, the parent requestor fails as well. B-20430 TANDP By default, the limit is 10 requestors in parallel; you can establish a higher or lower value in the prconfig.xml file using the services/maxRequestorChildren setting.

Related topics About Connect JMS rules
Creating Connector Simulations
Connect-Wait method
How to detect long-running connectors

UpMethods and instructions by function