JMS Listener data instances
JMS listeners provide the information needed to route Java Message Service (JMS) messages from a specific topic or queue to a JMS service rule. A JMS listener or JMS MDB listener data instance specifies which queue or topic contains the messages to be consumed and which JMS service rule(s) will process the messages.
The following tabs are available on this form:
Both JMS messaging domains are supported: publish-and-subscribe (including durable subscriptions) and point-to-point.
Listener types
JMS listeners can be implemented in one of two ways:
- When your system is deployed as a Web application, the listener runs as a Java thread, created when the system starts. The listener waits for incoming messages on the JMS destination (queue or topic). At regular intervals (as specified on the listener form), the listener checks to see the system issued a request for it to stop running. If your system is deployed as a Web application, configure JMS listeners with this JMS Listener form.
- When your system is deployed as an enterprise application, the listener is a message-driven bean (MDB) deployed inside your PegaRULES application. The MDB routes messages to the JMS service rule. If your system is deployed as an enterprise application, configure your JMS listeners with the JMS MDB Listener form ( Data-Admin-Connect-JMSMDBListener ). Use the form to configure the listener and to generate a fragment of the EJB deployment descriptor file that describes the MDB. Insert the fragment into the message-driven beans subsection of the EJB deployment descriptor file. For deployment instructions, see the Pega Community article How to deploy a JMS Listener as a message-driven bean.
Access
To review or create JMS Listener data instances, use the Records Explorer.
Development
You can create a JMS Listener data instance with the Service Wizard when creating JMS service rules.
Category
The Data-Admin-Connect-JMSListener class holds JMS Listener data instances. They are part of the Integration-Resources category.
- JMS Listener data instances - Completing the New or Save As form
Create a new JMS Listener data instance by selecting JMS Listener from the Integration-Resources category.
- JMS Listener form - Completing the Listener Properties tab
Use the Listener Properties tab to configure listener processes that wait for JMS messages received from an external system. After you complete this tab and save the JMS Listener form, you can click the Test Connectivity button to confirm that you can connect to the JNDI server and then to the JMS producer identified.
- JMS Listener form - Completing the JMS Properties tab
Use the JMS Properties tab to set up JMS configuration options for the listener, including the topic or queue and which messaging domain to use.
- More about JMS Listener data instances
Previous topic JMS Producer Model form - Completing the Model tab Next topic JMS Listener data instances - Completing the New or Save As form