I think this is not elegant, but maybe, instead of using a MDB as a queue
consumer (since all its parameters are hardcoded), you can set a timer to
poll the queue using @Timeout and @Schedule (let´s say every minute for
example) and consume selectively using a programmatic JMS selector using
session.createConsumer(queue,selector)



[]

Leo


On Tue, Nov 26, 2013 at 9:56 AM, ZhongGuan <[email protected]> wrote:

> I use the default setting. and if I change the TransactionManagementType to
> CONTAINER,
> I can see the message redelivaries for about 5 times. But after this, the
> message still be dequeued.
> How can I make the message stay in queue, when I am not ready for dealing
> with the message right now.
>
> thanks.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/redelivery-of-MDB-with-BMT-tp4666382p4666422.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>

Reply via email to