Kbase P103107: How to connect to a load balanced SonicMQ broker
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/9/2009 |
|
Status: Verified
GOAL:
How to connect to a load balanced SonicMQ broker
GOAL:
Using the SonicMQ 4GL adapter
GOAL:
How to code Fail-over Support of the SonicMQ adapter
FACT(s) (Environment):
Progress 9.1E
OpenEdge 10.0B
All Supported Operating Systems
FIX:
Use :
PROCEDURE setLoadBalancingDEFINE INPUT PARAMETER loadBalancing AS LOGICAL.
PROCEDURE setConnectionURLs.
DEFINE INPUT PARAMETER brokerList AS CHARACTER.
Example 4GL code:
RUN jms/pubsubsession.p PERSISTENT SET pubsubsession ("-H localhost -S 5162 ").
/* Setting Load Balancing : */
RUN setLoadBalancing IN pubsubsession (TRUE).
/* Setting the Connection Urls at host pctest2 for Broker1 with TCP acceptor at port 2606
and Broker2 with TCP acceptor at port 2706 : */
RUN setConnectionURLs IN pubsubsession ("pctest2:2606,pctest2:2706").
...