Starting with the Java EE 6.0 specification, you can deploy an Enterprise JavaBeans (EJB) bean in a web module. Because web project Java source files are compiled to .class files and are packaged under the WEB-INF/classes folder, Java files that are annotated with EJB annotations behave as an EJB bean in WebSphere Application Server Version 8.0. If a Java archive (JAR) file in the WEB-INF/lib folder contains a class that has an EJB annotation, that class also behaves as an EJB bean in WebSphere Application Server Version 8.0 and Liberty.
This rule flags the following items in web projects with a version of 2.5 or later:
The rule scans for the following EJB annotations:
javax.ejb.MessageDrivenjavax.ejb.Singletonjavax.ejb.Statefuljavax.ejb.StatelessThe rule does not flag items in the following cases:
metadata-complete="true" attribute,
and no ejb-jar.xml file is located in the WEB-INF folderFor additional information, see the following resource: