Try OpenEdge Now
skip to main content
Messaging and ESB
Programming for the OpenEdge Adapter for SonicMQ with the ABL - JMS API : PTP message example : Connecting to the broker
 

Connecting to the broker

In the following connection example, the OpenEdge application connects to the SonicMQ Broker to begin exchanging messages.

Connecting to the broker

RUN setBrokerURL IN hPTPSession ("tcp//machinename:2506").
RUN beginSession IN hPTPSession.