The source of the jencks-amqpool code is unavailable. The link doesn't work. I suppose that gnodet is the author. Where can I find the code?
http://fisheye.codehaus.org/browse/jencks/trunk/jencks-amqpool/src/main/java/org/jencks/amqpool/JcaPooledConnectionFactory.javaI am testing the performance of the JMSTemplate + JcaPooledConnectionFactory +ActiveMQ vs. Raw client code (1 connection and 1 session used) but it is even to 10 times slower (when using vm:// transport).
I debuged the source (Spring 2.0.8 - JMSTemplate) there are some invocations which could cause the overhead (especially in the "execute" method - line 409
http://kickjava.com/src/org/springframework/jms/core/JmsTemplate.java.htm), the connections and sessions are there created -> the underlying pool (jencks-amqpool) does the pooling - but I haven't seen the code so I can't find the bottleneck...
I don't want to write the pooling myself... Any clues how to use the JcaPooledConnectionFactory efficiently (maybe without JMSTemplate)...
Regards,
Tomek