A
Anand Adike
Guest
Hi Fuelfire, We should know which model we are going to use before start writing the programs. In any MQ we can send messages using either PTP or Pub-Sub model. jms/ ptpsession.p - will work only with PTP domain jms/ pubsubsession.p - will work only with Pub-Sub domain. jms/ jmssession.p - will work for both PTP and Pub-Sub domains. 2) I'm stuck on your example (Producer.p). Where the variable cdate is initialized? Or it's not working example? [Anand] - cdate variable is defined in the begin of variable definition section and Producer.p is working sample procedrue to send messages using PTP domain. Below is example to set the credentials in the procedure. /* Creates a session object. */ RUN jms/jmssession.p PERSISTENT SET ptpsession ("-H localhost -S 5162 -AppService AD.sonicMQ1"). /* Set user credentials. */ RUN setBrokerURL IN ptpsession (INPUT "TestQueueManager"). RUN setUser IN ptpsession (INPUT "admin" ). RUN setPassword IN ptpsession (INPUT "admin" ). Hope this helps!! Thanks, Anand.
Continue reading...
Continue reading...