1 Reply Latest reply on Jun 11, 2019 3:35 AM by manovotn

    CDI portable extension does not receive ProcessAnnotatedType events

    abialas

      Hello,

       

      I am trying to integrate Spring Data JPA with CDI on WebSphere 9.0.0.9 application server. I am using CDI portable extension which is implemented by Spring guys in the following classes:

      https://github.com/spring-projects/spring-data-jpa/blob/master/src/main/java/org/springframework/data/jpa/repository/cdi/JpaRepositoryExtension.java

      and

      spring-data-commons/CdiRepositoryExtensionSupport.java at master · spring-projects/spring-data-commons · GitHub

       

      As far as I understand method which observes ProcessAnnotatedType event should be triggered for each class in the classpath if beans.xml contains bean discovery mode set to all.

      I checked and during the runtime constructor for this extension is called but this method is not. Somehow like this extension does not receive these events.

       

      I also tried with discovery mode set to annotated and I added @ApplicationScoped to my interface - same result.

      The same configuration works great on JBoss EAP 7.1.

       

      What could be the reason?