<p>Which Template-Engine and Ajax-Framework/-Toolkit is able to load template information from JAR-Files?</p>

You need to define a Spring Bean which implements
ApplicationListener
.
Then, in your code, do something like this:
```
```
public void onApplicationEvent(ApplicationEvent appEvent)
{
    if (appEvent instanceof AuthenticationSuccessEvent)
    {
        AuthenticationSuccessEvent event = (AuthenticationSuccessEvent) appEvent;
        UserDetails userDetails = (UserDetails) event.getAuthentication().getPrincipal();

        // ....
    }
}
```
```
Then, in your applicationContext.xml file, just define that bean and it will automatically start receiving events :)