OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Yuxin Zhang (Zhang.YuxinORBITAL.COM)
Date: Mon Dec 03 2001 - 08:54:26 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Yes, I am using MSMQ. You mean I can use either Mutex or Semaphore object to
    lock the message even though the users and background running service are in
    totally different processes. Am I right?

    Thanks,

    Yuxin Zhang

    |--------+----------------------->
    | | com guy |
    | | <com_dc2000Y|
    | | AHOO.COM> |
    | | |
    | | 12/03/2001 |
    | | 01:39 AM |
    | | Please |
    | | respond to |
    | | Distributed |
    | | COM-Based |
    | | Code |
    | | |
    |--------+----------------------->
    >----------------------------------------------------|
      | |
      | To: DCOMDISCUSS.MICROSOFT.COM |
      | cc: (bcc: Yuxin Zhang/ORBVA) |
      | Subject: Re: Message Queue |
    >----------------------------------------------------|

        Hi!

           I hope u r using MSMQ. If that is the case,
    when ever u r accessing a message in the queue u can
    lock the purticular message. By this way u can achieve
    solving u'r problem.

        Cheers ...

        Kumar ...

    --- Yuxin Zhang <Zhang.YuxinORBITAL.COM> wrote:
    > Hello,
    >
    > I have a background program running as NT service to
    > remove messages from
    > Message Queue periodically. This message queue is
    > also peeked by multiple users.
    > How to solve this scenario that background program
    > tries to remove one message
    > while a user is reading it? If someone is reading
    > the message, the message
    > cannot be removed until no body accesses it. What
    > should I add to that
    > background program to check if message is being
    > accessed by others?
    >
    > Thank you,
    >
    > Yuxin Zhang
    >
    >
    ----------------------------------------------------------------
    > Users Guide
    > http://discuss.microsoft.com/archives/mailfaq.asp
    > contains important info. Save time, search the
    > archives at
    > http://discuss.microsoft.com/archives/index.html .
    > To unsubscribe,
    mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM

    __________________________________________________
    Do You Yahoo!?
    Buy the perfect holiday gifts at Yahoo! Shopping.
    http://shopping.yahoo.com

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM