"JBAS014521: No message listener of type javax.jms.MessageListener found ..." in EAP 6

Solution In Progress - Updated -

Issue

package com.test;

import javax.ejb.ActivationConfigProperty;
import javax.ejb.MessageDriven;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.jms.Message;
import javax.jms.MessageListener;

@MessageDriven
(activationConfig =
    {
        @ActivationConfigProperty(
                propertyName = "destinationType",
                propertyValue = "javax.jms.Topic"),
        @ActivationConfigProperty(
                propertyName = "destination",
                propertyValue = "topic/MyEventsTopic"),
        @ActivationConfigProperty
                (
                        propertyName = "messageSelector",
                        propertyValue = MetricsManager.JMS_SELECTOR
                ),
        @ActivationConfigProperty(
                propertyName = "user", propertyValue = "subscriber"),
        @ActivationConfigProperty(
                propertyName = "password", propertyValue = "mainstreet1!"),
        @ActivationConfigProperty(
                propertyName = "minSession", propertyValue = "1"),
        @ActivationConfigProperty(
                propertyName = "maxSession", propertyValue = "1"),
        @ActivationConfigProperty(
                propertyName = "useDLQ", propertyValue = "false")
    }
)
public class MetricsManagerJMSListener implements MessageListener
{
    public MetricsManagerJMSListener()
    {

    }

    @Override
    @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
    public void onMessage(Message aInMessage)
    {
        MetricsManager.getInstance().onMessage(aInMessage);
    }

}
MSC000001: Failed to start service jboss.deployment.subunit."test.ear"."test.jar".component.LicenseManagerServiceJMSListener.CREATE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."test.ear"."test.jar".component.LicenseManagerServiceJMSListener.CREATE: Failed to start service
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1936)
        ...
Caused by: java.lang.IllegalStateException: JBAS014521: No message listener of type javax.jms.MessageListener found in resource adapter hornetq-ra
        at org.jboss.as.ejb3.component.EJBUtilities.createActivationSpecs(EJBUtilities.java:105)
        at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.createComponent(MessageDrivenComponentCreateService.java:98)
        at org.jboss.as.ee.component.BasicComponentCreateService.start(BasicComponentCreateService.java:91)
        at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.start(MessageDrivenComponentCreateService.java:80)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980)
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913)
        ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • HornetQ

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content