Ask questions and see you at December, 2nd, 8.PM. CET: youtube.com/c/bienadam/live
Also checkout recent episode:
Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions. Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks
Hi @AdamBien,
I very often make use of an EntityManagerProducer class and annotate the method that returns the EntityManager with @produces so that I can inject the produced bean in other beans. This way I can use constructor injection and simplify my life when writing unit and integration tests because I am free to define whatever persistence unit I want.
I have read several times, however, that the EntityManager is not thread safe and I was wondering two things:
Thanks again.