Spring security and OSGi
I'm trying to build a JAVA application composed of a core and X bundles. (OSGi)
I am using Spring security to authenticate user at login and check user identity and credentials in Business methods. The question is, is it possible to share the security context to all the bundles, to validate User identity in each bundles ?
I was thinking to add a sevice in the core to check User credentials. Is this the right way to do it ?
(I hope my English is no too Ugly =/)
PS.: I have seen in the documentation the possibility to publish an application Context, but using directly this context seems to be discouraged.
For those who will read that message, I bought the book "Spring Dynamix Modules in Action" and get the answer.
I just didn't know enough about how works OSGi ans Spring DM.