[wildfly-dev] MDB throwing InvalidPropertyException

Jeff Mesnil jmesnil at redhat.com
Wed Oct 30 13:00:51 EDT 2013


On 30 Oct 2013, at 17:51, Arun Gupta <arun.gupta at gmail.com> wrote:

> Sample has a MDB defined as:
> 
> @MessageDriven(mappedName = "java:global/jms/myAsyncQueue")
> public class MessageReceiverAsync implements MessageListener {
>> }

it should be

@MessageDriven(
        activationConfig = {
            @ActivationConfigProperty(propertyName = "destinationLookup", propertyValue = "java:global/jms/myAsyncQueue")
        }
public class MessageReceiverAsync implements MessageListener {
 …
}

Note that the use of @MessageDriven’s mappedName[1] is product-specific, not portable (and indeed we don’t support it in WFLY).
Portable way to configure the MDB is using the destinationLookup activation config property.

[1] http://docs.oracle.com/javaee/7/api/javax/ejb/MessageDriven.html#mappedName()

jeff
> 

-- 
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/




More information about the wildfly-dev mailing list