Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-19510

[GSS](7.3.z) WFLY-13152 - WFLYEJB0094: EJB 3.1 FR 5.4.2 MessageDrivenBean does not implement 1 interface nor specifies message listener interface

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.3.2.CR1, 7.3.2.GA
    • 7.2.7.CR2
    • EJB
    • None
    • +
    • Hide

      As an workaround the subclass can Implements MessageListener.

      public class ReceiverMdb extends AbstractMdb implements MessageListener{
      ...
      }
      
      Show
      As an workaround the subclass can Implements MessageListener. public class ReceiverMdb extends AbstractMdb implements MessageListener{ ... }
    • Hide
      1. Unzip both projects.
      2. Go to LIB_HOME and apply this maven command to install the lib in you local repository --> mvn clean install
      3. Go to EAR_HOME and apply this maven command to package the application --> mvn clean package
      4. Deploy the application and test.
      Show
      Unzip both projects. Go to LIB_HOME and apply this maven command to install the lib in you local repository --> mvn clean install Go to EAR_HOME and apply this maven command to package the application --> mvn clean package Deploy the application and test.

    Description

      The MDB does not works when it extends a superclass that comes from an external JAR and this super class implements the MessageListener. It generates this exception:

      WFLYEJB0094: EJB 3.1 FR 5.4.2 MessageDrivenBean com.exemple.MyMDB does not implement 1 interface nor specifies message listener interface
      

      These are what I have noted:

      • It only happens in a EAR project. In a WAR project it works fine.
      • It only happens when the abstract class come from an external JAR
      • If the sub class implements directly the MessageListener or if the messageListenerInterface is defined in the annotation it works fine.

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: