[wildfly-dev] MDB throwing InvalidPropertyException

Arun Gupta arun.gupta at gmail.com
Wed Oct 30 16:38:18 EDT 2013


Noted, and sample fixed!

On Wed, Oct 30, 2013 at 10:00 AM, Jeff Mesnil <jmesnil at redhat.com> wrote:
>
> 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/
>



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



More information about the wildfly-dev mailing list