Ask a questionAsk a question
 

AnswerConversation Group Locking

  • Thursday, October 29, 2009 5:18 PMMark Shoemaker Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    Hello,

    I have a conversation group which contains a conversation identified by conversation handle @ch,

    In one process,  I do a

    RECEIVE ...

    , thereby locking the conversation group until the transaction is committed.

    What happens if, in a separate process, I try to do a
    SEND ON CONVERSATION @ch
    while the conversation group is still locked?

    Does it raise an error, or does it just assign a new conversation group, or does it do something else?

    Thanks,
    Mark

Answers

  • Monday, November 02, 2009 6:07 PMPawel MarciniakAnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Mark,

    The second process will wait on a lock until the first process ends the transaction (therefore releasing the conversation group lock), or until the lock acquiring timeout passes, in which case it will raise an error.

    Regards,
    Pawel

All Replies

  • Monday, November 02, 2009 6:07 PMPawel MarciniakAnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi Mark,

    The second process will wait on a lock until the first process ends the transaction (therefore releasing the conversation group lock), or until the lock acquiring timeout passes, in which case it will raise an error.

    Regards,
    Pawel