I am trying to integrate Spring Data JPA with CDI on WebSphere 126.96.36.199 application server. I am using CDI portable extension which is implemented by Spring guys in the following classes:
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?
what you describe is correct.
Sadly, I do not know why WebSphere gives you hard times as I mostly work on WildFly/EAP.
I'd suggest you bring up this question with WebSphere devs as it is likely to be a problem there (since WFLY/EAP works as expected, like you said).