Manage connections and sessions
- Last Updated: August 19, 2021
- 1 minute read
- OpenEdge
- Version 12.2
In order to use the messaging capabilities of JMS and the Progress OpenEdge JMS Adapter, a connection must be created to the JMS Provider Broker. An active connection receives messages. A session is a single-threaded context for sending and receiving messages. Since ABL is single-threaded, there is no compelling reason for multiple sessions per connection, nor for exposing the distinction between sessions and connections. In the context of the ABL–JMS API, the term session refers to the combination of a session and a connection.
When more than one session per connection is required (for example, to send and receive messages concurrently), a second session is used implicitly in the Progress OpenEdge JMS Adapter, transparent to the ABL programmer.