I have one java application which uses OSGI model :
I have two preexisting bundles :
- com.mos
- com.login
com.login
has a implementation and registration of Authenticator
service (own service for authentication).com.login
as well as com.mos
uses this authentication service.
Now I am writing one new bundle (com.new
) and I have to add / modify Authenticator Service so I have written my own implementation of it.
Once I start my program / application, if my new bundle com.new
runs after com.login
then all bundles uses new Authenticator Service
.But If com.new
bundles runs before com.login
then old Authenticator Service
is available.
Is there any mechanism in OSGI
where we give some priority something like which bundle should start first.