Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-2542

Groovy class implementing javax.jms.MessageListener error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 8.0.0.CR1
    • 8.0.0.Beta1
    • JMS
    • None
    • Hide

      1. Create a queue like "java:jboss/jms/queue/testQueue".

      2. Create a groovy class like:

      @MessageDriven(name = "MDBService", activationConfig = [
      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
      @ActivationConfigProperty(propertyName = "destination", propertyValue = "java:jboss/jms/queue/testQueue"),
      @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
      ])
      class MDBService implements MessageListener {

      @Override
      public void onMessage(Message message)

      { //any code }

      }

      3. and try to deploy the war to wildfly.

      Show
      1. Create a queue like "java:jboss/jms/queue/testQueue". 2. Create a groovy class like: @MessageDriven(name = "MDBService", activationConfig = [ @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), @ActivationConfigProperty(propertyName = "destination", propertyValue = "java:jboss/jms/queue/testQueue"), @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") ]) class MDBService implements MessageListener { @Override public void onMessage(Message message) { //any code } } 3. and try to deploy the war to wildfly.

      A Groovy class implementing the MessageListener interface (Message Drive Beans) returns an error at the deployment.

      org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014194: EJB 3.1 FR 5.4.2 MessageDrivenBean com.filipeferraz.service.MDBGroovyService does not implement 1 interface nor specifies message listener interface

      I have tested with a Java version of the class and works fine, the problem appers only when using a groovy class to implements the MessageListener interface.

            jmesnil1@redhat.com Jeff Mesnil
            filipepferraz@gmail.com Filipe Ferraz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: