[
https://issues.jboss.org/browse/WFLY-5235?page=com.atlassian.jira.plugin....
]
Scott Marlow commented on WFLY-5235:
------------------------------------
What happens on WildFly 10? There were a few changes in Hibernate 5.0, in how we join the
entity manager to the transaction. There was also a JPA container bug resolved as well.
I'm not sure if either has anything to do with the reported issue. Let us know if the
problem reproduces with WildFly 10. If it does reproduce with WildFly 10, could you
enable TRACE logging for org.jboss.as.jpa? See
[
https://docs.jboss.org/author/display/WFLY10/JPA+Reference+Guide#JPARefer...]
for how.
CDI interceptors are not called when invoking observer method
-------------------------------------------------------------
Key: WFLY-5235
URL:
https://issues.jboss.org/browse/WFLY-5235
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 9.0.1.Final
Reporter: Dirk Weil
Assignee: Martin Kouba
The following code runs with an active transaction on WFLY 8.2.0, but failes with an
TransactionRequiredException on WFLY 9.0.1:
@ApplicationScoped
public class InitCocktailDemoDataService
{
@PersistenceContext
private EntityManager entityManager;
@Transactional
private void createDemoData(@Observes @Initialized(ApplicationScoped.class) Object
event)
{
this.entityManager.merge(someEntity);
}
It seems that interceptors aren't called at all - at least for observers of scope
lifecycle events.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)