@WebListener on a HttpSessionListener? otherwise @Observes @Initialiazed(SessionScoped.class) in the cdi bean
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> 2018-05-07 17:10 GMT+02:00 Matthew Broadhead <[email protected] >: > what is the best way to run code when a session is first created? i > thought maybe a @PostConstruct inside a @Named @SessionScoped but it > doesn't trigger. >
