Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-09-2008
tctimmeh tctimmeh is offline
Registered User
 
Name: Tim Court
Organization: Enbridge Pipelines
Project: IPC replacement
 
Join Date: Dec 2007
Posts: 19
Preserving proxy options from Locator

I've created a custom Locator and I'm not quite understanding the relationship between what the Locator returns and what the caller actually receives. Specifically, any proxy options I set in the Locator (such as endpointSelection) don't seem to be preserved in the proxy that actually makes it to the caller.

For instance, if my application does something like this:
Code:
pxy = MyPrx.checkedCast(comm.stringToProxy('dummy@Ordered-endpoints'))
my Locator prints the value of the proxy's endpointSelection immediately before returing from findAdapterById and it is correctly set to Ordered. But the resultant proxy of the code above has Random endpointSelection, despite what the Locator had set.

Is this the normal behaviour or am I doing something wrong? If this is the normal behaviour, is there any way that I can force the proxy options to be preserved?
Reply With Quote
  #2 (permalink)  
Old 04-09-2008
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,541
Hi Tim,

Note that there's 2 kind of proxy options: local and non-local proxy options. Local proxy options are never marshalled with the proxy. Non-local proxy options are the ones that can be specified in a stringified proxy (see D.1 Proxies). Local proxy options are the ones which can be configured through properties (see C.8 Ice Proxy Properties).

In any case, the Ice runtime only uses the endpoints of the proxy returned by the Ice::Locator operations, it doesn't override the indirect proxy options with the ones from the proxy retrieved by the locator. There's no way to force the proxy options to be preserved.

Cheers,
Benoit.
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
server activation options rdaneel Help Center 2 05-25-2007 08:56 AM
locator mwilson Help Center 2 12-05-2006 09:02 PM
/YX stdafx.h and /clr command-line options incompatible rano Help Center 6 06-12-2006 09:30 AM
--source-ext options broken in slice2cpp 2.1 acbell Bug Reports 2 03-14-2005 12:57 AM
Locator Diego Giraldez Comments 5 05-09-2003 02:06 PM


All times are GMT -4. The time now is 09:11 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.