Re: deltaspike git commit: DELTASPIKE-1034 ActiveEntityManagerHolder needs to be Serializable

2015-11-30 Thread Mark Struberg
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

Re: deltaspike git commit: DELTASPIKE-1034 ActiveEntityManagerHolder needs to be Serializable

2015-11-27 Thread Gerhard Petracek
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).