Hi, I'm tyring to use Spring MVC to expose some business logic already coded in 
bundles through @Controller endpoints and secure them using Spring Security.

In 4.2.15, when installing spring-security feature, the following dependencies 
are added:
karaf@root()> feature:install spring-securitykaraf@root()> la | grep -i spring 
69 | Active   |  30 | 5.3.9.1  | Apache ServiceMix :: Bundles :: spring-aop 70 
| Active   |  30 | 5.3.9.1  | Apache ServiceMix :: Bundles :: spring-beans 71 | 
Active   |  30 | 5.3.9.1  | Apache ServiceMix :: Bundles :: spring-context 72 | 
Active   |  30 | 5.3.9.1  | Apache ServiceMix :: Bundles :: 
spring-context-support 73 | Active   |  30 | 5.3.9.1  | Apache ServiceMix :: 
Bundles :: spring-core 74 | Active   |  30 | 5.3.9.1  | Apache ServiceMix :: 
Bundles :: spring-expression 75 | Active   |  30 | 5.3.9.1  | Apache ServiceMix 
:: Bundles :: spring-jdbc 76 | Active   |  30 | 5.4.6.1  | Apache ServiceMix :: 
Bundles :: spring-security-acl 77 | Active   |  30 | 5.4.6.1  | Apache 
ServiceMix :: Bundles :: spring-security-config 78 | Active   |  30 | 5.4.6.1  
| Apache ServiceMix :: Bundles :: spring-security-core 79 | Active   |  30 | 
5.4.6.1  | Apache ServiceMix :: Bundles :: spring-security-taglibs 80 | Active  
 |  30 | 5.4.6.1  | Apache ServiceMix :: Bundles :: spring-security-web 81 | 
Active   |  30 | 5.3.9.1  | Apache ServiceMix :: Bundles :: spring-tx 82 | 
Active   |  30 | 5.3.9.1  | Apache ServiceMix :: Bundles :: spring-web 83 | 
Active   |  30 | 5.3.9.1  | Apache ServiceMix :: Bundles :: spring-webmvc

As far as I understand (I'm very new to Spring) if there's a spring-security 
feature, It can be use, more, you could use Spring to code your bundles, but 
I'm very confused.Since the feature adds spring-web and spring-webmvc 
dependencies, It means that I will be using Spring MVC, which is 
"programatically" different from Spring Boot. Also, I found that there's 
something called Spring Dynamic Modules which google/stackoverflow says it's 
already dead (or almost).

How should I use Spring MVC in Karaf? How could a bundle activator starts a 
Spring app? Does anyonw have an example on using Spring MVC and Spring Security 
in Karaf?
Thank you very much in advanced.Nick.

Reply via email to