Shutting down a thread after a specific number of messages

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Shutting down a thread after a specific number of messages

  • Creator
    Topic
  • #48288
    Randy Colella
    Participant

      I wrote a tcl proc that counts 3 messages then shuts down the thread once the third message has gone through.  The problem is the proc only works on the inbound tab (Send OK Procs) of the thread that I’m shutting down and it ends up shutting down the thread befoe the messages is completely through.  If I place the proc on the outbound tab of the thread in “TPS Outbound Data” or “Send OK Procs” it does nothing.

      Has anyone sucessfully written a proc to shutdown a thread after a certain number of messages has gone through?

    Viewing 0 reply threads
    • Author
      Replies
      • #58256
        Jim Kosloskey
        Participant

          Randy,

          I am assuming you have the receiving system ackowledging each message.

          So what I might try is: put your proc in the TPS Inbound Reply UPoC specified at the Outbound Tab of the Outbound thread. Then count the number of replies. Once you have received three replies, you know the three messages were delivered and the receiving system acknowledged them.

          Make sure you define your counter as global.

          Jim Kosloskey

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.