Release 10.1A: OpenEdge Development:
Messaging and ESB

> ## Creating a JMS session

> These are the general steps to create a JMS session in the 4GL:

> 1. Run `jms/jmssession.p`, `jms/pubsubsession.p` or `jms/ptpsession.p` persistently with the OpenEdge Adapter for SonicMQ 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.

> ##### Creating multiple sessions

> A 4GL 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 SonicMQ Broker or a single SonicMQ 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 SonicMQ client session and you want to minimize the number of SonicMQ client sessions.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095