|
|
|
||||||
|
Hi,
The demo doesn't create one Ice object per client -- it demonstrates the IceGrid allocation (in the sense of reserving or leasing) feature of Ice objects: when a client allocates an object, other clients can't allocate the object until it's released. See the Ice manual for more information on the IceGrid allocation mechanism. If you want to allow multiple clients to invoke concurrently on the same object, you don't need to use the IceGrid allocation mechanism (just take a look at the IceGrid simple demo). If you want to have one object per client, you need to implement a factory on the server to allow the client to create objects. You'll have to make sure to correctly clean up the server resources when the client goes away. I recommend you to take a look at the Issue 3 of the Ice newsletter for more information on how to do this (and at this FAQ for the reason why tying the object lifetime to the connection is a not a good idea). Cheers, Benoit. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| passing objects | nicole | Help Center | 5 | 02-12-2007 10:12 PM |
| Multiple Layers of Redirection in IceGrid | zhi | Help Center | 1 | 11-22-2006 05:28 AM |
| How can I get all Objects in evictor db? | Yunqiao Yin | Help Center | 2 | 02-10-2006 04:21 AM |
| Objects and Proxies | ganzuoni | Help Center | 1 | 06-18-2003 03:49 PM |