Noted, and sample fixed!
On Wed, Oct 30, 2013 at 10:00 AM, Jeff Mesnil <jmesnil(a)redhat.com> wrote:
On 30 Oct 2013, at 17:51, Arun Gupta <arun.gupta(a)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#mappedNa...
jeff
>
--
Jeff Mesnil
JBoss, a division of Red Hat
http://jmesnil.net/