Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-10-2007
jli125 jli125 is offline
Registered User
 
Name: Jin, Li
Organization: The University of Auckland
Project: Intelligent Replication Middleware
 
Join Date: Mar 2007
Posts: 5
collocation optimization per object

Is there anyway to defaultly set collocation off on all proxies to a specific object. The reason for this is this particular object is always represented as a blobject and collocation calls will always result in an exception.

I know it is possible to turn collocation off on each individual proxy, but this requires the developer to do this everytime he uses a proxy to that object.

I know it is also possible to turn it off for all proxies but this prevents collocation from working with other proxies.

Is there any built in way of setting this per object, maybe through slice meta directives?
Reply With Quote
  #2 (permalink)  
Old 07-11-2007
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,052
Since collocation optimization is a local proxy setting it does not flow over the wire, so therefore we have to examine the various cases.

How are you getting the proxy to this object? If you get it through a stringified proxy you can use the <name>.CollocationOptimization property (as long as you use Communicator.propertyToProxy.

If you get the proxy from the object through some sort of factory method then disable collocation optimization on the proxy before returning it. If the object is collocated then, good, the proxy you are using will be have collocation optimization disabled (assuming that the factory is itself called with collocation optimization). If the proxy is remote then the remote process cannot possibly use collocation optimization.

What does not work in this case is if you get the proxy from a third party (for example, IceGrid or a similar lookup service). In this case you have to manually disable the setting.
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
Object* add(Object servant, Identity id),can the servant be static object? russule Help Center 2 06-23-2007 08:19 AM
AMD Collocation Optimization bpolivka Patches 1 03-19-2007 03:17 PM
Collocation Optimization with IcePack: a bug? zanza Bug Reports 1 07-01-2005 06:48 AM
Optimization for WIN32 hellocyf Comments 3 06-22-2004 11:54 PM
Is it possible to disable Collocation Optimization? galbe Help Center 3 11-05-2003 12:29 PM


All times are GMT -4. The time now is 11:03 AM.


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