tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: JtaEntityManager GC
Date Mon, 19 Feb 2018 23:11:39 GMT
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 <cocorossello@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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message