Results 1 to 2 of 2

Thread: proper self-destroy of a Glacier2::Session

  1. #1
    thomas is offline Registered User
    Name: Thomas Hentschel
    Organization: Technical University of Munich
    Project: intelligent information distribution system
    Join Date
    Jul 2011
    Posts
    9

    Question proper self-destroy of a Glacier2::Session

    Hi,

    I've got a class which subclasses Glacier2::Session. This class acts like a bridge: it interacts with the client on one side and with some other Ice-Applications on the other side.
    The wanted behaviour is: if the session is unable to call a method either on the server-side or the client-side (after a few tries) the session should be destroyed.
    How to properly destroy the session within the code of the SessionImpl? Another Ice-Application is able to destroy by calling the destroy-method on the SessionProxy but inside the SessionImpl I am only able to call my local implemented destroy-function which does not result in destroying the Session at all.

    The only possiblity I can imagine is to wait for inactivity-timeout but there has to be a better way

  2. #2
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hi Thomas,

    Your session manager's create operation receives a proxy for a SessionControl object. You can pass this proxy to your session implementation, and it can invoke destroy on the SessionControl proxy when it needs to destroy the session.

    Regards,
    Mark

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: 03-14-2008, 10:38 PM
  2. Glacier2 Session
    By omid in forum Help Center
    Replies: 0
    Last Post: 03-14-2008, 02:33 PM
  3. Glacier2 Session Timeout
    By andreynech in forum Help Center
    Replies: 4
    Last Post: 01-14-2008, 09:21 AM
  4. What happens to the session when Glacier2 dies?
    By apetrov in forum Help Center
    Replies: 2
    Last Post: 10-26-2007, 05:35 PM
  5. Glacier2 destroy session question
    By xdm in forum Help Center
    Replies: 1
    Last Post: 07-09-2007, 06:12 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •