Send msg from Progress 9.1E to a Sonic 7.0 queue

ErikaP

New Member
I’m new to SonicMQ. I'm trying to send a message to a sonic queue by using the Pogress sample code (sample18.p). It uses jms/ptpsession.p.
What queues and brokers do I need to set up within the Sonic Management Console and how do I set up the adapter within the Progress Explorer Tool to be able to use jms/ptpsession.p?

Regards,

Erika
 
The SonicMQ adapter is installed as part of Progress installation. It is included in the Provision licence. I'm not sure if it is included as part of any other licence.

You will see the SonicMQ adapter under the progress explorer tool if it is installed. I'm guessing you cannot see it at the moment so you will need the correct licence code for your progress installation.

As for the sample queues etc. I do not have that example program to hand so I'm unable to list the queues (if you point me towards it I can take a look - I thought it was part of the installation but I cannot find it).

I'm guessing that the call to send to sonic is something like...
Code:
RUN sendToQueue IN ptpsession (pcQueueName, messageH, ?, ?, ?) NO-ERROR.

pcQueueName is the queue name so you can search back through the example to see what this value is.
 
Thank you. I did setup the SonicMQ Adapter and the NameServer in the Progress Explorer Tool, but when I run the sample program, which sends a message to a queue I just get the error message: "Application Service adapter.progress.jms not found at NameServer at host 127.0.0.1 Port 5162"
The NameServer is running on port 5162. Seems like the broker is not registering with the NameServer. The status of the Adapter is not displaying and when I display the status of the NameServer it displays "Num Brokers: 0" & "Num AppServices: 0". I assume that is the problem but don't know how to fix it.

Erika
 
Found the problem!! The SonicMQ Adapter fails to start because it can't find the sonic_client.jar and jndi.jar files. In the registry under
HKEY_CURRENT_USER\SOFTWARE\PSC\PROGRESS\9.1x\JAVA\PROGRESSCP
add the paths to these jar files in the data field of the PROGRESSCP variable:

C:\Sonic\MQ7.0\lib\jndi.jar;
C:\Sonic\MQ7.0\lib\sonic_Client.jar;
C:\Sonic\MQ7.0\lib\activation.jar;

Stop and then re-start the AdminService.

Regards,

Erika
 
Back
Top