implement location service in Java

in Help Center
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:
Implementing
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.
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:
import Ice import CustomIPC.Locator class FileRegistry(Ice.Locator, CustomIPC.Locator.FileRegistry):
Implementing
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.
0
Comments
I don't understand what you mean by derivation from Ice::Object exposing too much internal stuff. In fact every servant is-a Ice::Object--that's just how the API works.
Cheers,
Michi.
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.