Kbase P118132: Adapter for SonicMQ: How to implement transacted sessions
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/21/2006 |
|
Status: Unverified
GOAL:
How to implement a Transacted session with the Adapter for SonicMQ
GOAL:
How to use the setTransactedSend, setTransactedReceive, commitSend, and commitReceive Adapter for SonicMQ API calls
GOAL:
How to receive a group of messages in a single transaction
GOAL:
How to send a group of messages in a single transaction
FACT(s) (Environment):
SonicMQ
Progress 9.x
OpenEdge 10.x
FIX:
Transacted session are initiated by a call to setTransactedSend or setTransactedReceive, depending on whether it is receiving session or sending session. This call must be made before the session is imitated with the beginSession call
The transaction starts as soon as the session is started. Calling commitSend or commitReceive will commit the transaction. Typically this is done after the final message is processed.
An example of a transacted sender can be found in the sample:
DLC\samples\src\samples\sonicmq\adapter\examples\example22.p
An example of a transacted receiver can be found in the sample:
DLC\samples\src\samples\sonicmq\adapter\examples\example23.p