@Named
@ApplicationScoped
@Transactional
public class AuthServiceBean extends AbstractService implements AuthService {
private static final Logger LOGGER = LoggerFactory.getLogger(AuthServiceBean.class);
@PersistenceContext
protected EntityManager em;
I believe v2 does, though, as it is essentially embedded Wildfly 11 with some other bits glued on.
I didn't see the transaction management code he mentioned in his question in the v4 code. Is Thorntail bringing in a dependency transitively that manages those transactions in the way the OP described?
Is this link similar to what you're referring to? https://stackoverflow.com/q/24643863/1024412
@jonathan: To clarify, if the code you posted originally (with `@PersistenceContext`) is what you're using then the EntityManagerProducer is not used. It instead relies on the `JpaServices` class which implements a CDI service for resolving such references. It's a bit confusing given that Thorntail is using non-standard behavior to accommodate the lack of EJB support while still allowing JPA to be used conveniently.
Is this link similar to what you're referring to? https://stackoverflow.com/q/24643863/1024412
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To post to this group, send email to thor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/214b9e05-2c6f-4863-94fe-307dbca3ec24%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To be safe, is there any reason we should keep EntityManagerProducer and it's ilk?
@bob: I agree.
To be safe, is there any reason we should keep EntityManagerProducer and it's ilk?
--
You received this message because you are subscribed to the Google Groups "Thorntail" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To post to this group, send email to thor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/f7ae09a4-5ca2-4713-8f2f-1dcb1220c1c6%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to thorntail+...@googlegroups.com.
To post to this group, send email to thor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/thorntail/7c141c97-a1a3-4ac8-9c52-1f6303131516%40googlegroups.com.