View Single Post
  #2 (permalink)  
Old 09-01-2003
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
If you want to transfer "Test" objects by-value, then you must install an object factory for "TestI" in the client, so that Ice knows how to instantiate new Test objects when unmarshaling.

For an example, have a look at demo/Ice/value. In the file Client.cpp, you'll find the following code:

Ice::ObjectFactoryPtr factory = new ObjectFactory;
communicator->addObjectFactory(factory, "::Printer");

You can take this as an example for how to install object factories for by-value transfer of objects.
Reply With Quote