On Saturday 24 February 2007 03:20, ich bin wrote: > My question still is that if the remote > service(I assume it is OSGi service) is deactivated/Uninstalled, then we > can also deactivated/uninstalled its proxy(or its mirror) consequently, how > it can be done?
It is not trivial, and the observant has noticed that the Jini Bridge specification in R3 was dropped, and I assume it was mainly related to such problems. However, if you look at Newton (http://newton.codecauldron.org) you have a "kind-of" solution you are looking for. Further, it is likely that you will see a more standardized solution coming out of the Enterprise Expert Group, albeit not in the near future. > My next question is how I can get an absolute path of the OSGi directory > within one running bundle? Not sure what you mean by "the OSGi directory"?? OSGi doesn't really require a file system, and AFAIK no such term exist at the specification level. However, BundleContext.getDataFile() returns you a file handle to a file which is in scoped by the bundle. Where this is, is up to the framework implementation, and you can't make any further assumptions on where other stuff is. Cheers Niclas _______________________________________________ OSGi Developer Mail List [email protected] http://www2.osgi.org/mailman/listinfo/osgi-dev
