tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacek Laskowski" <ja...@laskowski.net.pl>
Subject Re: Specifying source queue for message driven bean (MDB)
Date Wed, 17 Oct 2007 19:51:28 GMT
On 10/17/07, Martin Vysny <mvy@whitestein.com> wrote:

> to the stateless bean definition, and
>
> <activation-config-property>
> <activation-config-property-name>destination</activation-config-property-name>
> <activation-config-property-value>queue/FE_QUEUE</activation-config-property-value>
> </activation-config-property>
>
> to the message driven bean definition.

I believe you can do this using @MessageDriven annotation, e.g.

@MessageDriven(
    activationConfig = {
        @ActivationConfigProperty(propertyName="destinationType",
propertyValue="javax.jms.Queue"),
        @ActivationConfigProperty(propertyName="destination",
propertyValue="queue/FE_QUEUE")
    }
)

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Mime
View raw message