Missing part in understanding OSGI [message #1064049] |
Mon, 17 June 2013 08:10  |
Eclipse User |
|
|
|
Dear VIRGO experts,
I need your help to point me in the right direction understanding the osgi concepts. What i don't understand yet is how to use the basic web.xml definition made in a single web bundle (dispatcherServlet, securityFilterChain, ...) in a no web bundle.
For example if I want to design a modular rest api. Then - if I understand osig correctly - it would be possible to do it like this:
Web Bundle
web.xml with dispatcherServlet
springconfig.xml with RequestMappingHandlerMapping, JSON Converter, ...
Non Web Bundle - API parts 1
applicationcontext.xml with various osgi:reference imports form the web bundle like:
RequestMappingHandlerMapping
or other resources defined in other bundles like:
Hibernate datasource
and the bundle content:
Controllers, Services, DAO, etc...
Non Web Bundle - API parts 2
applicationcontext.xml with various osgi:reference imports form the web bundle like:
RequestMappingHandlerMapping
or other resources defined in other bundles like:
Hibernate datasource
and the bundle content:
Controllers, Services, DAO, etc...
The question is now: How to run the part 1 part 2 bundle in the corresponding context of the "central rest api web bundle".
The same question is relevant for spring security settings. Of course i can define a security filter chain in a web bundle as well as the auth manager for example in the corresponding springconfig.xml. It is also no problem to use a reference to the authManger in other bundles. But: I don't understand how to bring the non web bundles in the context of a web bundle. In this case the security filter chain.
Is this VIRGO SNAPS what I am looking for?
Or am I totally on the wrong way with my osgi understanding?
Any help would be fantastic.
Best regards, Martin
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26631 seconds