Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-12-2006
xdm's Avatar
xdm xdm is offline
ZeroC Staff
 
Name: José Gutíerrez de la Concha Martínez
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Sep 2003
Location: La Coruña, Spain
Posts: 299
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
Reply With Quote
  #2 (permalink)  
Old 05-13-2006
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 931
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.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limitations of Overloading operations Venkat Seeth Help Center 5 02-18-2005 11:19 AM
Performance in local operations wolfram Comments 4 08-26-2004 07:47 PM
Operations in Class yomi Help Center 2 04-10-2004 10:39 PM
class with operations, Initialization StuartA Help Center 6 02-22-2004 07:58 PM
Why operations on classes? bernard Comments 1 02-21-2003 11:36 AM


All times are GMT -4. The time now is 12:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.