I have an application say app1 which bind an object to the jini lookup service reggie.My many client interact with the my app1 using the object i have made available at look up service. After some time by app1 is terminating itself.i.e it is getting closed down.I am register my object using the code ServiceRegistrar registrar.register(serviceItem, Lease.FOREVER); can you please suggest where i am doing mistaks.
thansk Edward for you notable suggestions. My problem is that i working on the sample example given at some website with the necessary batch files to run the code. My server is not responding after some time. And when i am running the client program i am getting the fallowing exception i.e Exception occured in MyClient.main() method:java.lang.NullPointerException This is that example program Inteface
/* Find the Jini lookup service (reggie) and print its location */
lookup = new LookupLocator ("jini://localhost");
/* Get the lookup service's ServiceRegistrar and perform a search to find the service that has the name attribute name of "HelloWorldServer". The lookup service returns an Proxy object to the service */
registrar = lookup.getRegistrar(); aeAttributes = new Entry; aeAttributes = new Name ("HelloWorldServer"); template = new ServiceTemplate (null, null, aeAttributes); myServerInterface = (MyServerInterface) registrar.lookup (template);
Please suggest me where i shall make changes in this code such that the service object remain availabe for long time, unless some network failure etc. Also suggest me few site where i am find some reference material and workable examples on jini technology.
Thanks Edward for you suggestions and for the link. The link which you have send is not much helpful to me. But can you send me few links where i can find few jini working examples. and also site where i can get free jini e-books for downloads.