On Friday 16 September 2005 04:17 am, Achmad Arif Rachim wrote: > I was thinking like that before. but how do i intercept quartz. This is > becouse im using MethodSecurityInterceptor, every time targetMethod invoked > by localhost it throws AuthenticationException. > > Im using MethodDefinitionAttributes using commons-attributes. The idea was > to make every method invocation passed security concern. > > Unfortunately for method that was invoked by localmechine will throw > AuthentificationCredentialsNotFoundException :(. I was wondering how to > intercept quartz before invoking targetMethod, so i can put > AuthenticationObject into ThreadLocal,... but seems doesnt have a clue. :( > You will need to authenticate a user in your quartz job before it actually calls your secured method. See this thread: http://article.gmane.org/gmane.comp.java.springframework.acegisecurity.devel/984 In particular, take a look at this message: http://article.gmane.org/gmane.comp.java.springframework.acegisecurity.devel/1000 I'm not yet familiar with Quartz, so it's up to you (or someone else on this list) to figure out how to accomplish this in relation to Quartz, but it should be simple enough to pull off.
- Andy ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Home: http://acegisecurity.sourceforge.net Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer