On 1/16/07, Paul French <[EMAIL PROTECTED]> wrote:
Okay thanks. Just for my understanding, why is it still super quick to send messages using JmsTemplate (using Async and a SingleConnectionFactory) yet incredibly slow to consume them (using SingleConnectionFactory)?
Because sending messages doesn't do very much. Creating and destroying consumers is a lot of work for the broker - as soon as a consumer is created ActiveMQ will start streaming messages to the consumer as it expects a well behaving JMS client to want to stream messages as fast as possible... http://incubator.apache.org/activemq/what-is-the-prefetch-limit-for.html
What is your recommended approach for consumming messages when using a JmsTemplate in a standalone environment?
Not to use JmsTemplate at all for consuming. If you don't wanna use Jencks, MDBs or Spring's message containers, then just use the JMS API and create a bunch of sessions and MessageConsumers. -- James ------- http://radio.weblogs.com/0112098/