This rule flags entity elements in ejb-jar.xml files.
Entity beans are optional in the EJB 3.2 specification and are not supported on Liberty or Liberty Core. The entity bean API is deprecated in WebSphere Application Server traditional V8.5.5 and V9.0 and might be removed in a later version. The EJBDeploy tool used to deploy applications with entity beans has also been deprecated and may be removed in the future, either at the same time entity beans are removed or prior.
The Java Persistence API (JPA) is an alternative to using EJB entity beans for new database and other persistence-related operations.
Liberty will ignore entity beans defined in applications if they are not called. If your application has entity beans defined but does not use them, the application will run on Liberty without any changes required.
The Java Persistence API (JPA) is an alternative to using EJB entity beans for new database and other persistence-related operations. Upgrading entity beans can be difficult, but it can be simplified if your application uses design patterns such as DTO, Session Facade, and DAO.