implement prefect logic for the destination prefetch - prefetch size will be like below will be passed as part of the destination name
<message-driven>
<ejb-name>mybean</ejb-name>
<destination-jndi-name>queues/@my.Queue?consumer.prefetchSize=3</destination-jndi-name>
</message-driven>