[wildfly-dev] MDB throwing InvalidPropertyException

Arun Gupta arun.gupta at gmail.com
Wed Oct 30 12:51:45 EDT 2013


Sample has a MDB defined as:

@MessageDriven(mappedName = "java:global/jms/myAsyncQueue")
public class MessageReceiverAsync implements MessageListener {
  ...
}

The destination is specified on a Servlet as:

JMSDestinationDefinitions({@JMSDestinationDefinition(name =
"java:global/jms/mySyncQueue",
resourceAdapter = "jmsra",
interfaceName = "javax.jms.Queue",
destinationName="syncQueue",
description="My Sync Queue"),
@JMSDestinationDefinition(name = "java:global/jms/myAsyncQueue",
resourceAdapter = "jmsra",
interfaceName = "javax.jms.Queue",
destinationName="asyncQueue",
description="My Async Queue")
})
@WebServlet(urlPatterns = {"/TestServletSendAsync"})
public class TestServletSendAsync extends HttpServlet {
  ...
}

Complete sample is at:

https://github.com/arun-gupta/javaee7-samples/tree/master/jms/send-receive


Deploying this sample gives the error:


Caused by: java.lang.RuntimeException:
javax.resource.spi.InvalidPropertyException: Destination is mandatory
at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.activate(MessageDrivenComponent.java:215)
at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.start(MessageDrivenComponent.java:186)
at org.jboss.as.ee.component.ComponentStartService$1.run(ComponentStartService.java:54)
[wildfly-ee-8.0.0.Beta2-SNAPSHOT.jar:8.0.0.Beta2-SNAPSHOT]
... 6 more
Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory
at org.hornetq.ra.inflow.HornetQActivationSpec.validate(HornetQActivationSpec.java:727)
[hornetq-ra-2.4.0.Beta2.jar:]
at org.jboss.jca.core.rar.EndpointImpl.activate(EndpointImpl.java:184)
[ironjacamar-core-impl-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.activate(MessageDrivenComponent.java:213)
... 8 more

This deployed and worked fine on GlassFish.

Any thoughts on what is missing ?

Arun


-- 
Blog: http://blog.arungupta.me
Twitter: http://twitter.com/arungupta


More information about the wildfly-dev mailing list