PengZheng commented on issue #766:
URL: https://github.com/apache/celix/issues/766#issuecomment-2260188523

   > During use, it was found that ConsumerLandleB would occupy ServiceBundleA 
service for a long time until it ended. Can it achieve the effect of shared 
access like threads?
   
   You can of course share the same service instance provided by Bundle A 
between Bundle B and C.
   If you want Bundle A to provide distinct service instances to B and C so 
that each has their own service instance provided by A. Then you should use the 
service on demand pattern. For an example, check the implementation of logger 
helper.
   
   > In this scenario, I can only add the interface header file and consumer 
file of the server bundle to the consumer bundle on the lower computer to 
achieve startup registration. 
   
   Dynamic bundle loading has nothing to do with interface header file, which 
is only relevant at build time (say, when building the bundle). Whenever a 
bundle is received from the remote side, all you have to do is to install and 
start the bundle.
   
   >  Additionally, due to the limitation on requirement 1
   
   As already answered, I saw no limitation here.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to