Consultor Eletrônico



Kbase P22670: How to use the SonicMQ adapter without the NameServer?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   05/10/2010
Status: Verified

GOAL:

How to use the SonicMQ adapter without the NameServer?

GOAL:

Is there any way to directly connect via TCP through the adapter instead of the NameServer? .

FACT(s) (Environment):

All Supported Operating Systems
Progress 9.1x
OpenEdge 10.x

FIX:

The following steps assume that SonicMQ and Sonic Adapter are installed and configured. It also uses the example1.p and example2.p located in the DLC\src\samples\sonicmq\adapter\examples directory.

1) Before starting the Sonic Adapter, make sure it is not set to register with the NameServer. Start the Adapter. The default TCP port is 3620.

2) Start SonicMQ.

3) Change the connection string in both example1.p and example2.p to use the 3620 TCP port of the Sonic Adapter, instead of the 5162 UDP port of the NameServer. Also, add the -DirectConnect parameter. To illustrate:

change:

RUN jms/pubsubsession.p PERSISTENT SET pubsubsession ("-H hostname -S 5162 ").

To:

RUN jms/pubsubsession.p PERSISTENT SET pubsubsession ("-H hostname -S 3620 -DirectConnect ").

4) Launch example2.p (subscription)

5) Launch example1.p (publish).