Results 1 to 2 of 2

Thread: Life cycle operations coment

  1. #1
    xdm's Avatar
    xdm
    xdm is offline ZeroC Staff
    Name: Jose Gutierrez de la Concha
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Sep 2003
    Location
    La Coruña, Spain
    Posts
    588

    Life cycle operations coment

    Hi zeroc

    First of all i found the Life cylce operations article very interesting, and well explained. Congratulations michi.

    one question i'm not understand is the example that you make with NuclearBomb and Process


    //Client A do this
    ProcessPrx p=createProcess("Fred");

    //Client B
    // supose Fred is allready destroyed
    NuclearBombPrx b=createNuclearBomb("Fred");

    //Client A
    p->launch();

    What's happen here? the call sucess to a inteterface of diferent type or raise an exception beacuse the Type is not the expected

  2. #2
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    Quote Originally Posted by xdm
    Hi zeroc

    one question i'm not understand is the example that you make with NuclearBomb and Process


    //Client A do this
    ProcessPrx p=createProcess("Fred");

    //Client B
    // supose Fred is allready destroyed
    NuclearBombPrx b=createNuclearBomb("Fred");

    //Client A
    p->launch();

    What's happen here? the call sucess to a inteterface of diferent type or raise an exception beacuse the Type is not the expected
    The type of the target object is unknown on the client side. (For example, the interface could be of a type that is more derived than the type of the proxy used by the client to invoke the operation.) So, the Ice protocol does not transmit the type of the target object at all.

    The server only gets the object identity to decide which object should receive the request. In turn, this means that, if I have a proxy to an object, and that object is destroyed and another object is recreated with the same identity, invocations on the proxy will go to the wrong object.

    As a rule, this means that such an invocation will fail, because it is unlikely that the target object will have an operation with the same name, and with input paramters that happen to decode correctly.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Life Cycle Problems
    By RonnieDay in forum Help Center
    Replies: 4
    Last Post: 03-30-2011, 11:42 AM
  2. Servant auto life cycle
    By LAstakhov in forum Help Center
    Replies: 1
    Last Post: 05-12-2008, 08:57 AM
  3. Operations in Class
    By yomi in forum Help Center
    Replies: 2
    Last Post: 04-10-2004, 09:39 PM
  4. class with operations, Initialization
    By StuartA in forum Help Center
    Replies: 6
    Last Post: 02-22-2004, 06:58 PM
  5. Why operations on classes?
    By bernard in forum Comments
    Replies: 1
    Last Post: 02-21-2003, 10:36 AM

Posting Permissions

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