osgi - multiple instances of a service
问题 How can I create multiple instances of a bundle that consumes an external webservice? An external webservice requires clients to logon before using the services. I have multiple accounts. The problem is I want to be able to add multiple instances; one for each account. Each instance is an osgi declarative service that consumes the external service. Do I have to deploy a new bundle for each account? This does not feel like the right way to solve this. 回答1: Is that bundle under your control -