felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ismail berrada <ismaberr...@yahoo.fr>
Subject Re: is it possible to send a stop to a service running in a different bundle ?
Date Wed, 10 Feb 2016 16:40:41 GMT
 Hello
You can have a list of current bundles and theirs states from the BundleContextThen you can
make any operation from your bundle.You can access the bundle context from the Activator class
 

    Le Mercredi 10 février 2016 16h20, Hubert Felber <Hubert.Felber@abacus.ch> a écrit
:
 
 

 Hi,

I would like to send a stop to a service running in another bundle ?
Can this be done?

Explanation:

Service B in Bundle B has a dependency on Service A in Bundle A , so B
will  stop  a f t e r  service A stopped. Service A knows the service B
.
I want to stop service B as soon as service A reveceives a stop and  b
e f o r e  service A has finally stopped , not after.

Is there a way?

Thank you
Regards 
Hubert


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org



 
  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message