Re: Injection of an EntityManager is not adapted to CMT mode

2019-08-01 Thread Richard Grin
OK, thanks Javier. It's done: https://issues.apache.org/jira/browse/NETBEANS-2934 (and another one: https://issues.apache.org/jira/browse/NETBEANS-2935). Le 01/08/2019 à 16:39, Javier Ortiz a écrit : Yes, please do. https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-2931?filter=al

Re: Injection of an EntityManager is not adapted to CMT mode

2019-08-01 Thread Javier Ortiz
Yes, please do. https://issues.apache.org/jira/projects/NETBEANS/issues/NETBEANS-2931?filter=allopenissues On Thu, Aug 1, 2019, 9:29 AM Richard Grin wrote: > Do I have to report this problem elsewhere for it to have a chance to be > fixed? > > I found other problems in other codes generated by N

Re: Injection of an EntityManager is not adapted to CMT mode

2019-08-01 Thread Richard Grin
Do I have to report this problem elsewhere for it to have a chance to be fixed? I found other problems in other codes generated by NetBeans and I prefer to report them the right way. Regards, Richard Le 29/07/2019 à 16:06, Richard Grin a écrit : Hi Ortiz, The EJB in which I inject is NOT ann

Re: Injection of an EntityManager is not adapted to CMT mode

2019-07-29 Thread Richard Grin
Hi Ortiz, The EJB in which I inject is NOT annotated by @TransactionManagement( TransactionManagementType.BEAN) so, by default, the transactions are managed by the container: one automatic commit or rollback at the end of the method which started the transaction (I won't go into the details...

Injection of an EntityManager is not adapted to CMT mode

2019-07-29 Thread Richard Grin
Hi, NetBeans 11.1. The code generated by NetBeans for the injection of an EntityManager is not adapted to the CMT (Container Managed Transaction) mode. "Generate" menu for "Insert code..." > "Use Entity Manager...". The generated code:     @PersistenceContext(unitName = "xxx")     private E