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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.2.9.CR1, 7.2.9.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.

      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.

        1. lib.zip
          10 kB
        2. samplemdbear.zip
          9.59 MB

              chaowan@redhat.com Chao Wang
              rhn-support-rhsilva Rhuan Rocha (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: