|
|
|
|||||
|
Can a Servant implement both dynamic and static invocations
From the docs it seems that a Servant that want to use Dynamic Invocation needs to extend Ice.Blobject but than, using Java, it will not be able to extends the class generated from Slice.
|
|
|||||
|
Thanks, but I am not sure I fully understand how to do that.
1. How can I determine that from the Ice.Current 2. Isn't that too late? That is done in the Servant/Skeleton that was dispatched, no? |
|
||||||
|
Ice.Current contains information such as the name of the operation and the identity of the Ice object. If you can decide based on this information whether the request should be dispatched using a dynamic or static servant, then you can use a servant locator for this purpose.
Quote:
Take care, Mark |
|
|||||
|
Ok, thanks.
I see now. Assuming you are referring to Ice.LocatorPrx do you have any examples of changing the clients/proxy locator? Can it delegate to the default locator (e.g. after renaming the object identity)? |
|
|||||
|
Thanks, I was aware of that but thought you were referring to client side interception. Assuming you were actually referring to server side interception by using the ServantLocator I can clearly see how it can work.
BTW, Any reason not to make any generated Skeleton extends Blobject instead of extending directly ObjectImpl and considering the ice_invoke method (which can throw "not support" exception as default implementation? |
![]() |
| 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 |
| Object* add(Object servant, Identity id),can the servant be static object? | russule | Help Center | 2 | 06-23-2007 08:19 AM |
| Unable to implement servant location in Ice for Python | cmellon | Help Center | 1 | 01-04-2007 04:20 PM |
| Are client invocations dispatched in the calling thread? | rhochmuth | Help Center | 5 | 02-06-2006 11:26 AM |
| A question about collocated invocations. | OrNot | Help Center | 4 | 06-17-2005 12:08 PM |
| Help with servant implement | minifat | Help Center | 6 | 08-18-2004 10:10 PM |