Since there’s so much existing code using Enterprise Beans (EJB), a certain level of support is still desired. Piranha Cloud takes a somewhat novel approach to Enterprise Beans and maps Enterprise Beans annotations to equivalent functionality in CDI or other Jakarta EE APIs.
The Future of EJB
EJB, or Enterprise Beans, are Java classes with a number of container provided services attached to them, such as transactions, remoting and security. A possible future direction for EJB is to rebase it on CDI. Instead of having those two essentially competing component models in Jakarta EE, we would end up with just one.
Getting Started with Jakarta EE 9: Context And Dependency Injection (CDI)
In this article of the Getting Started with Jakarta EE series, we look at various specifications and how you can use them in your next application.
We explain a few features of Context and Dependency Injection (CDI). The CDI specification is an important backbone of Jakarta EE as it brings several specifications together. Over the years, it became more and more important as an increasing number of specifications started using CDI as the basis for it.
In this article, we will also tell you a bit about the different scopes, the interceptor mechanism, and the Event system.