|
|
|
|||||
|
implement location service in Java
Hi,
Location Services mentions that location service implementation is out of the scope for the document. Are there any examples, specifically in Java, already out there? A colleague of mine got it working with Python by: Code:
import Ice import CustomIPC.Locator class FileRegistry(Ice.Locator, CustomIPC.Locator.FileRegistry): def findObjectById_async(self, cb, id, current = None): def findAdapterById_async(self, cb, id, current = None): creating an OA, adding self to it, activating, and setting default locator to it. My problem trying to do this in Java is not knowing exactly what interfaces to implement or classes to extend. Implementing Ice.Locator can't be right as it implements Ice.Object and then too much internal stuff is exposed. Thanks. |
|
||||||
|
Hi,
You can also look at the implementation of the location service from the test/Ice/location test in your Ice for Java distribution. In Java, you need to create a class that extends Ice._LocatorDisp to implement the locator interface. Cheers, Benoit. |
|
|||||
|
Thanks, that works. I was looking for a concrete class that already implemented Ice.Object and most of Ice.Locator to extend, not abstract interfaces to implement.
|
![]() |
| 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 |
| Unable to implement servant location in Ice for Python | cmellon | Help Center | 1 | 01-04-2007 04:20 PM |
| How to start the iceBox in java for the storm service | Jason Gao | Help Center | 5 | 10-20-2006 06:32 AM |
| broadcast / multicast location service? | gerkey | Help Center | 3 | 10-05-2006 02:35 AM |
| Why Java proxies does not implement the slice interface ? | annekat | Comments | 12 | 03-24-2006 11:38 AM |
| Icegrid java icebox service | xdm | Help Center | 6 | 01-09-2006 04:59 AM |