This content has been marked as final.
Show 1 reply
-
1. Re: Context lost when using StreamingOutput
mkouba Mar 5, 2018 3:01 AM (in response to kafeukleu)Hi Tino,
the problem is that normal scopes (such as
@TransactionScoped
) are associated with the current thread and usually don't propagate. In your case, it's JTA impl which provides the CDI context. So I would probably start with finding out whenStreamingOutput#write()
is invoked and read the JTA spec to find details about when the transaction context is active (and whether it propagates, i.e. if it can be associated with more threads).