Kbase P10455: Can setStringProperty be set in a ptp connection?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/02/2004 |
|
Status: Verified
GOAL:
Can Message Objects setStringProperty method be used in a Point to Point domain Session?
FIX:
Yes, the Message Objects setStringProperty method may be invcoked in a Point to Point domain session as the following sample code demonstrates:
DEFINE VARIABLE ptpsession AS HANDLE.
DEFINE VARIABLE messageH AS HANDLE.
RUN jms/ptpsession.p PERSISTENT SET ptpsession ("-H localhost -S 5162 ").
RUN setBrokerURL IN ptpsession ("localhost:2506").
RUN beginSession IN ptpsession.
RUN createTextMessage IN ptpsession (OUTPUT messageH).
RUN setText IN messageH ("ExampleText").
RUN setStringProperty IN messageH ("TO", "ExampleProperty").
RUN sendtoqueue IN ptpsession ("test", messageH, ?, ?, ?).
For additional information on this proerty see 'Appendix C 4GL-JMS API Reference' of the 'Progress External Program Interfaces'.