To start a JMS connection and execute a JMS connector rule, create an activity that:
- Creates a named page that is the source and destination of data mapping.
- Opens the JMS connector rule on a named page of a Rule-Connect-JMS class.
- Using that page as a step page, calls the Connect-JMS method.
- Examines the status properties returned by the connector.
If this activity is in a class derived from the Work- base class, you
can set the Activity
Connect and reference the activity in a flow rule.
For information on gathering performance information about this connector see Testing Services and Connectors on Pega Community.
To test a Connect JMS rule, use the JMS Explorer button on the Environment tab of the JNDI Server form. For an example, see the Pega Community article How to debug JMS connectors using BROWSE, PUT and GET message operations.
Simulation and testing
To debug your application, you can simulate a JMS connector when the external system is unavailable or lacks a test setup.
For more information on testing connectors, see Testing Services and Connectors on Pega Community.