Yes and no ;)
Yes, the EntityManager is not Serializable (at least almost never).
No, it is not a problem.
This class gets used and stored in the TransactionStrategy. And this is
@Dependent to the TransactionInterceptor. Which is an interceptor and thus
@Dependent (per spec) on the
hi john,
that just means an implementation needs to rely on it or needs additional
concepts to handle it differently.
DefaultEntityManagerHolder doesn't store it at all and the only useful
implementation needed by the data-module stores it as a thread-local
(see ThreadLocalEntityManagerHolder).