deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <john.d.am...@gmail.com>
Subject Re: SessionScoped @ExceptionHandler?
Date Sat, 13 Sep 2014 11:33:10 GMT
Karl,

It's unclear whether or not you're expecting this to work.  If you want
your exception handler to work when it's session scoped, you need to start
a session scope w/ CDI Ctrl.

On Sat, Sep 13, 2014 at 5:05 AM, Karl Kildén <karl.kilden@gmail.com> wrote:

> Hello,
>
> SessionScoped @ExceptionHandler is this supported / considered normal
> practice? The problem is when the exception is from a job with no active
> sessionscope I get ContextNotActiveException.
>
> I was excepting a log message warning me that it could not send it for
> obvious reasons... My SessionScoped exceptionhandler collects information
> per user basis and it works smoothly when the exception was caused by user
> action.
>
> cheers
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message