Results 1 to 2 of 2

Thread: about change session

  1. #1
    luis12 is offline Registered User
    Name: yu hua
    Organization: Xiamen University
    Project: the cti for ip pbx
    Join Date
    May 2009
    Posts
    12

    about change session

    hello

    I use the glaice2 to manage the sessions.

    first, I use createSession with a userID= A and password= XXX to create a Session

    and now , I want to destory the session which userID=A, then create a new session which userID=B


    what my problem is, when I use the router's function destorySession, it raise a exception

    help me
    so thanks

  2. #2
    benoit's Avatar
    benoit is offline ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi,

    Yes, this is expected, you should catch ConnectionLostException:

    Code:
    try {
        router‑>destroySession();
    } catch (const Ice::ConnectionLostException&) {
        // Expected
    }
    See see 43.3.6 in the Ice manual for more information.

    Cheers,
    Benoit.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. var set nothing change
    By Tschili in forum Help Center
    Replies: 10
    Last Post: 04-05-2009, 04:11 PM
  2. Replies: 6
    Last Post: 03-14-2008, 10:38 PM
  3. Problem with Interface change!
    By JaneShang in forum Help Center
    Replies: 2
    Last Post: 05-09-2005, 08:20 AM
  4. Change in Behavior in 2.1 from 2.0
    By acbell in forum Help Center
    Replies: 3
    Last Post: 04-22-2005, 01:29 PM
  5. IceStorm change in 1.1.0?
    By vukicevic in forum Help Center
    Replies: 1
    Last Post: 05-28-2003, 06:27 PM

Posting Permissions

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