You are very unclear with requirements, but if you want to limit how many messages are buffered on a consumer side, then in ActiveMQ 5.x it's called 'prefetch limit'. Params can be passed via connection URI (for all destinations), or along destination name as a destination option. A very detailed explanation is here:
http://activemq.apache.org/what-is-the-prefetch-limit-for.html -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html