-
Story
-
Resolution: Done
-
Minor
-
None
-
None
Add a rule for Glassfish: MessageDriven must implement MessageListener or declare listenerInterface
It looks like Glassfish is quite tolerant regarding the spec, and does not require that @MessageDriven implements MessageListener.
On JBoss we have:
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: WFLYEJB0094: EJB 3.1 FR 5.4.2 MessageDrivenBean com.company.ticket.mdb.TicketMDB does not implement 1 interface nor specifies message listener interface
The spec: https://docs.oracle.com/javaee/6/tutorial/doc/bnbpo.html