These are the general steps to create a JMS session in ABL:

  1. Run jms/jmssession.p, jms/pubsubsession.p or jms/ptpsession.p persistently with the Progress OpenEdge JMS Adapter connection parameters as INPUT CHAR parameters.
  2. (Optional) Set JMS attributes and parameters by calling internal procedures in the session procedure.
  3. Start the actual JMS connection and session by calling the beginSession procedure.
Note: Session attributes cannot be modified after calling the beginSession procedure.

An OpenEdge application can create and connect to multiple Session objects concurrently. You must create separate sessions to connect to each domain (PTP or Pub/Sub) with a separate Progress OpenEdge JMS Adapter Broker or a single Broker's unified domain.

Note: It is recommended that you use the JMS session domain and minimize the number of Session objects. Each session represents a separate JMS-provider client session and you want to minimize the number of JMS-provider client sessions.