it was supposed to be done on leaf call on the dsl
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> 2018-02-19 23:33 GMT+01:00 cocorossello <cocorosse...@gmail.com>: > 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; > } > .... > } > > How can I clear the entityManager? > > > > -- > Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users- > f979441.html >