I wondered if someone could help me with the best way of structuring my bundle start sequencing.
My application is a self hosted server that runs Felix which then runs a "bootstrap bundle" from bundle/ which in term adds a repository to felix.bundlerepository.RepositoryAdmin (I think I'm very behind the times) which is in a well-known location in the installation - app-bundle/ . All the bundles in there are then started transiently to prevent them starting automatically on the next restart. The reason I do it this way is because I have to restart the JVM when code is updated; some components in my server do not deal well with bundle restarting (threads left etc). It is too much work to fix this. When the app restarts, and because the bundles were only started transiently, the "bootstrap bundle" gets a chance to look for updated code, install it, then run the bundles transiently again. A problem I have had is where I have updated the "bootstrap bundle". If this is done by in-app update then the new version is never used, because it does not get copied to bundle/ . If it is done by installing a new version of the software manually, it is added in addition to the previous version of the bundle, both run, and problems result. It feels like I might be able to add another special case to resolve this. However I think I'm going about this totally wrong and I wondered if there have been any developments in the past four years since I implemented this? Thanks, Dan
_______________________________________________ OSGi Developer Mail List osgi-dev@mail.osgi.org https://mail.osgi.org/mailman/listinfo/osgi-dev