|
|
|
|||||
|
I'm trying to get dynamic Ice working so I can do dynamic invocation and dispatch, but am a little clueless on how to implement some of the required methods.
The manual says I need to implement ice_id(), ice_ids(), ice_isA(string id), and ice_ping(), but unfortunately gives almost no indication of how to do that. I couldn't find any examples in the demos, either. It seems like ice_id() is pretty straightforward, and I thought ice_ids() was, too, until I tried it out on some other proxy (which isn't a subclass of Blobject) and saw that it makes all kinds of calls to Glacier2. Why? Does my implementation need to do the same thing? And what do I do for ice_ping()? Sorry if I'm just missing something or being dumb. thanks, chris |
|
|||||
|
Thanks, Mark, that helped a lot. I got it working now, thanks! Not sure if my design is quite right, but I'll worry about that tomorrow.
For now, I have a couple questions regarding return values. I want for the robot to be able to pass back return values to the GUI client (through the relay server, and using dynamic ice). I tried a simple test and got an UnmarshalOutOfBoundsException. After some forums searches, I found a post (http://www.zeroc.com/vbulletin/showt...?p=881#post881) from you that explained that the exception often comes from invoking a twoway operation on a oneway proxy. That was exactly my problem (thanks again!). So, two questions:
thanks again! chris |
|
||||||
|
Hi,
Quote:
Since only the client can know how an operation is invoked, Glacier2 allows a client to control the router's forwarding behavior with the use of a specially-recognized request context, and you could use a similar strategy. In fact, if you are using Glacier2 as the front-end for your relay, your relay could recognize the same request context ("_fwd"). Be aware that Glacier2 must be configured to forward request contexts. Quote:
Take care, - Mark |
![]() |
| 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 |
| Blobject | mwilson | Help Center | 3 | 12-04-2006 03:40 PM |
| Bug in Makefiles of Blobject examples (Connections 11) | Andreas Scherer | Bug Reports | 1 | 02-28-2006 10:53 PM |
| I can`t run py examples in mac-os | ACM | Help Center | 5 | 02-14-2006 02:38 AM |
| IceBox examples ?? | surfer | Help Center | 2 | 09-26-2005 09:44 AM |
| Ice examples | jvme | Help Center | 1 | 08-04-2005 07:57 AM |