Keeping server-side object alive

Discussion in 'ASP .Net Web Services' started by Liam, Jul 15, 2005.

  1. Liam

    Liam Guest

    I'm trying to wrap a protocol behind a web service, the problem is that
    part of this protocol involves a thread that waits for asynchronous
    events and replies to commands - one of those events is to indicate if
    you have successfully logged on.

    This thread needs to run for the lifetime of the session. I can keep
    the object alive, but as soon as the startup/login web method ends the
    event thread dies with it so I don't get any more messages.

    Is there a way to keep an object alive with threads running in a web
    service or will I have to start looking into remoting (or any other
    solution appreciated!).

    --Liam.
     
    Liam, Jul 15, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. hoenes1
    Replies:
    0
    Views:
    392
    hoenes1
    Aug 16, 2004
  2. =?Utf-8?B?RGF2ZSBBbHZhcmFkbw==?=

    Keeping a session alive when accessing an ASP page with .Net code

    =?Utf-8?B?RGF2ZSBBbHZhcmFkbw==?=, Sep 1, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    680
    =?Utf-8?B?RGF2ZSBBbHZhcmFkbw==?=
    Sep 1, 2005
  3. Replies:
    2
    Views:
    555
    =?Utf-8?B?V2lsbGlhbSBTdWxsaXZhbg==?=
    May 3, 2006
  4. Replies:
    4
    Views:
    335
  5. hisan
    Replies:
    1
    Views:
    1,384
    Dan Stromberg
    Jun 25, 2012
Loading...

Share This Page