samedi 18 avril 2015

Spring security global-method-security doesn't work in OSGI environment


Vote count:

0




I tried to use spring security to protect my osgi service and web application, the intercept-url works fine, but the global method security doesn't work at all. For pure OSGI bundle, proxy mode doesn't work, since spring-beans cannot access SpringProxy. I tried both proxy mode and aspectj mode, and enabled load time weaving in aspectj mode, the bundle was successfully loaded. But the Preauthorized doesn't work(pre-post-annotations="enabled" was added in xml configuration), and the annotation added both on interface and implementation, still it doesn't work.


I don't know the mechanism of the spring security for protecting bean methods. Is there anybody can give me some hint? Thank you!



asked 35 secs ago







Spring security global-method-security doesn't work in OSGI environment

Aucun commentaire:

Enregistrer un commentaire