You are here: Reference > Data classes > JMS MDB Listener data instances > More about JMS MDB Listener data instances

More about JMS MDB Listener data instances

  1. About 
  2. New 
  3. Listener Properties 
  4. JMS Properties 
  5. History 
  6. More... 

EAR versus WAR deployment

The operation of JMS listeners (not JMS MDB listeners) depend on whether Pega 7 Platform is deployed as an Enterprise application (EAR file) or a Web application (WAR file). See PDN article Using MQ and JMS Services with Enterprise Application deployment regarding EAR deployment and polling.

For an EAR deployment example, see PDN article How to deploy a JMS Listener as a Message-driven bean.

When and how JMS MDB listeners run

Two settings affect how JMS MDB listeners run. If your listener is not behaving the way you expect, examine the following:

Application properties for request messages

Pega 7 Platform provides four application-specific JMS properties that the sender can set to provide information about the messages consumed by Pega 7 Platform JMS services.

PegaRULES_ServiceMethod

This JMS property identifies the third key part of a JMS service rule. You can use this property in the following two ways:

PegaRULES_UserID and PegaRULES_Password

Two properties identify the user name and password of a valid user.

Typically, if the message-driven bean and the service rule are to run as an authenticated user, specify the appropriate user on the JMS Properties tab of the JMS MDB Listener form. Values provided in the message with the PegaRULES_UserID and PegaRULES_Password override the values specified on the JMS Properties tab.

PegaRULES_SessionID

When a JMS service sends a reply in response to a message, the listener uses this property to specify the ID of the session used by the requestor that processed the original message. If the sending application sends a reply in response to the service's response, it can use this property to specify that the same session be used to process this message. This mechanism allows the sending application and the JMS service to conduct stateful sessions.

Application properties for response messages

When the service rule is configured to send a response, the listener adds property values for the following properties to the message:

The listener also sets a value in the JMSCorrelationID message header. By default, this value is copied from the JMSMessageID field from the request message unless it is overridden in the data mapping on the Response tab of the service rule.

About JMS MDB Listener data instances