D
D
dony322016-08-25 18:31:34
Java
dony32, 2016-08-25 18:31:34

How to implement different Spring context for OSGI bundles?

There is an OSGI container with some OSGI bundles.
It is necessary that the bean (described once) in one case had a context singleton for each individual bundle, and in the other context singleton was for absolutely everyone. Is it possible to implement this using Eclipse Equinox and Spring DM?
Unfortunately, there is no experience with OSGi and I could not find an answer for myself. I would be grateful for any information and advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kosarev, 2016-08-26
@jaxtr

Perhaps this can be resolved using Spring profiles, and specify the desired profile in each OSGI bundle.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question