kumuluz / kumuluzee

Lightweight open-source framework for developing microservices using standard Java EE technologies and migrating Java EE to cloud-native architecture.
https://ee.kumuluz.com
MIT License
291 stars 71 forks source link

what about EJB support ? #145

Open demanzano opened 5 years ago

demanzano commented 5 years ago

Hello, I'ld ask if you plan to implement EJB support (maybe soon ? :) ) In my opinion CDI is great but there are some features that are only in EJBs yet (i.e. pooled bean, @Schedule(), @Asynchronous) and many not-so-old Java EE 7 projects still use them.. Thanks! Ale

MBJuric commented 5 years ago

Hi, EJBs and microservices are not a perfect fit, as they both provide similar concepts, but on different levels. For example, load balancing is provided on the level of EJBs (session beans) and on the level of containers (k8s). Therefore it is common best practice to refactor EJBs to CDI when migrating to microservices. Therefore it is unlikely that we will provide support for EJBs. Best regards, Matjaz

demanzano commented 5 years ago

Hi! thanks for answer! I think I disagree with your analysis, as I said currently CDI does not support all EJB features (notably @Schedule, @Asynchronous and bean pooling = performance). A limited support as could be the EJB Lite specs would solve this in the meanwhile CDI grows those features. No need to remoting support (LB...). Anyway thanks Ale