Re: injecting httpservletrequest in timer

2017-12-07 Thread Matthew Broadhead
yes it worked On 07/12/2017 11:48, Romain Manni-Bucau wrote: scope a wrapper? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-12-07 11:21 GMT+01:00 Matthew Broadhead : I couldn't scope it because otherwise couldn't return null On

Re: injecting httpservletrequest in timer

2017-12-07 Thread Romain Manni-Bucau
scope a wrapper? Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-12-07 11:21 GMT+01:00 Matthew Broadhead : > I couldn't scope it because otherwise couldn't return null > > > On 07/12/2017 09:55, Romain Manni-Bucau wrote: >> >> if you

Re: injecting httpservletrequest in timer

2017-12-07 Thread Matthew Broadhead
I couldn't scope it because otherwise couldn't return null On 07/12/2017 09:55, Romain Manni-Bucau wrote: if you scope this producer you would have a lazy instance and in the context of the timer you wouldnt call it so you wouldnt have this NPE Romain Manni-Bucau @rmannibucau | Blog | Old

Re: injecting httpservletrequest in timer

2017-12-07 Thread Romain Manni-Bucau
if you scope this producer you would have a lazy instance and in the context of the timer you wouldnt call it so you wouldnt have this NPE Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn 2017-12-07 9:49 GMT+01:00 Matthew Broadhead : > i

injecting httpservletrequest in timer

2017-12-07 Thread Matthew Broadhead
i have this method to @Produces KeycloakSecurityContext @Produces     @Default     @Dependent     public KeycloakSecurityContext keycloakSecurityContext() {         try {             if (httpServletRequest instanceof KeycloakPrincipal) {                 KeycloakPrincipal keycloakPrincipal =