Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-28-2006
bdk bdk is offline
Registered User
 
Name: Bruce Karsh
Organization: Wink Technologies, Inc
Project: Wink People Search Engine
 
Join Date: Sep 2006
Posts: 9
problem with IceGrid example

In the manual (page 1056) they show indirect proxies like

Quote:
factory@EncoderServer1.EncoderAdapter
In my descripor file, I define a server id and an adapter name and try to
use a proxy like
Quote:
objectname@servername.adaptername
.

It fails with a "no object adapter with id servername.adaptername" error.

But when I use a proxy like
Quote:
objectname@adaptername
, it succeeds.

Is the manual correct about the syntax
Quote:
object@servername.adaptername
?
I can't find any mention of this syntax anywhere else in the manual. Is there some trick to making it work?

I'm running version 3.1.0.
Reply With Quote
  #2 (permalink)  
Old 09-29-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
Hi,

The manual is correct, an indirect proxy has the following syntax:identity @ adapterId. The adapter id is different from the adapter name. Adapter ids are configured with the "id" attribute of the adapter XML element in the descriptor and if this "id" attribute isn't specified explicitly the default value is "<server id>.<adapter name>".

See the documention for the adapter element in the Ice manual (section 36.14.1) for more information.

I don't know why it doesn't work for you, could you post the XML descriptor of your server?

Cheers,
Benoit.
Reply With Quote
  #3 (permalink)  
Old 09-29-2006
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,564
Btw, could you please set your signature? See this thread for more information on how to set it.

Thanks,

Benoit.
Reply With Quote
  #4 (permalink)  
Old 09-29-2006
bdk bdk is offline
Registered User
 
Name: Bruce Karsh
Organization: Wink Technologies, Inc
Project: Wink People Search Engine
 
Join Date: Sep 2006
Posts: 9
OK, I see what the problem was. I had set both the name and the id - both to the same value. When I set the id, that overrode the default id. When I got rid of the explicit setting of the id, it all worked.

Thanks for the help.
__________________
* Bruce Karsh
* Wink Technologies (wink.com)
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
Problem with replication in IceGrid davidcr1983 Help Center 3 12-15-2006 08:02 AM
IceGrid problem with file names with space character kovacm Bug Reports 2 12-12-2005 10:10 AM
IceGrid startup performance and CPU usage "problem" kovacm Comments 11 12-06-2005 07:52 AM


All times are GMT -4. The time now is 11:05 PM.


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.