Hi David, Apart from the lack of details in your question, this is also hardly a Tapestry question. You should direct it to the Spring forums instead, but if this reply helps so be it:
You will need in your applicationContext.xml to define a bean that will automatically start receiving events (I assume you know how)... I am not familiar with Spring security, but the API docs are quite clear: http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework/context/ApplicationListener.html So code that might have looked something like this in the past: public void onApplicationEvent(ApplicationEvent applicationEvent) { if (applicationEvent instanceof AuthenticationSuccessEvent) { AuthenticationSuccessEvent event = (AuthenticationSuccessEvent) applicationEvent; UserDetails userDetails = (UserDetails) event.getAuthentication().getPrincipal(); //notify here now, etc. } } 'In theory' (untested of course) can now be replaced by: public void onApplicationEvent(AuthenticationSuccessEvent successEvent) { UserDetails userDetails = (UserDetails) successEvent.getAuthentication().getPrincipal(); //notify here etc. } And thats all?! Cheers, Peter ----- Original Message ----- From: "David Uttley" <dutt...@democracysystems.com> To: "Tapestry users" <users@tapestry.apache.org> Sent: Wednesday, 30 March, 2011 16:50:26 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Logon notification So do I have any takers for this problem? Somebody must be recording logins somewhere, I don't have to use Spring to do it. ------Original message I am trying to get spring security to notify me of a successful logon using the Spring ApplicationListener. However, the ApplicationListener doesn't seem to be notified of the events. Any help or pointers will be appreciated. I am using t5.2 Spring 3.0 and the 3.0.0-snapshot of t5 Spring Security. ------- Thanks David --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org