I was trying to inject a simple bean into a custom EntityListener(referenced by @EntityListeners) on weblogic 12.2.1.2 with @Inject annotation. However, bean is always null. I have tried to do a lookup on java:comp/BeanManager on a PostConstruct annotated method in the listener. However, it seems that BeanManager is not yet available in the jndi at this moment. Doing the same lookup in an @PostCreate annotated method in the EntiytListener works and provide the BeanManager with the desired bean. Problem has been reproduced by my coworker with a basic test. Hibernate is correctly defined as jpa provider in the persistence.xml |