I'd say it's a problem related to connection pooling (or the lack thereof). To do a simple test try replacing your ActiveMQConnectionFactory with the PooledActiveMQConnectionFactory (not sure about the name, but something along this line)
Mario On 12/10/07, andriy_heikal <[EMAIL PROTECTED]> wrote: > I'm implementing ActiveMQ in Spring environment and using Jencks for > consumer as a listener. Performance for 6000 messages sent in one time is > 47msg/sec... but when testing ActiveMQ with simple java class I get about 3k > msg/sec. Whats the problem? can anybody help me? anyway my testing platform > is notebook with dual core 1.7GHz and 1.5GB memory. Please refer to my code > below.