Update:
as Burt Beckwith mentioned, ContextListener is not standart class. However, it's easy to implement. You can see how it's implemented in App info grails pluginhere
Once you drop this into src/groovy it should be automatically available in your Spring context. You can use it like this after injecting into a controller or service.
Try this:
Update: as Burt Beckwith mentioned,
ContextListener
is not standart class. However, it's easy to implement. You can see how it's implemented in App info grails plugin hereIf you want the
HttpSession
then how about this:Once you drop this into src/groovy it should be automatically available in your Spring context. You can use it like this after injecting into a controller or service.