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.