2009/3/19 Claus Ibsen <claus.ib...@gmail.com>: > On Wed, Mar 18, 2009 at 8:07 PM, greenbean <kevin.urci...@ngc.com> wrote: >> >> I made the change you suggested. However, I am getting the same error. :-( >> >> Do you have any other suggestions? > Isnt it because you have CACHE_NONE? > <property name="cacheLevelName" value="CACHE_NONE" /> > > I would assume all resources is cleared after use and thus the it > needs to reconnect on every new message.
Agreed - CACHE_NONE basically means to create a new connection, session, consumer/producer for each message you send/receive then close them all down again. The way to avoid that is to reuse the ActiveMQComponent (as it uses a pooling ConnectionFactory under the hood) or use an explicit pooling connection factory. More details here... http://activemq.apache.org/jmstemplate-gotchas.html -- James ------- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/