Re: JtaEntityManager GC

2018-02-19 Thread cocorossello
Thx Chongma, but one question. Let's say I also want to use that MyRepo1 from a @Stateless @Scheduled (so no request context). How can I produce that same entityManager? -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html

Re: JtaEntityManager GC

2018-02-19 Thread cocorossello
Romain, one question. You said that if I was using it outside a transaction I should clear myself the entityManager. But looking at the JtaEntityManager it does nothing in that case: public void clear() { if (!extended && !isTransactionActive()) { return; }

Re: JtaEntityManager GC

2018-02-19 Thread Romain Manni-Bucau
it was supposed to be done on leaf call on the dsl Romain Manni-Bucau @rmannibucau | Blog | Old Blog | Github | LinkedIn