I just downloaded the ActiveMQ 1.5 distribution. I see another sample in the distribution under modules/spring/src/test/org/codehaus/activemq/spring.

Seems like the difference between the two is that the sample you pointed me to uses a JCA adapter while this version is the simple non JCA version.

Comparing the simple solution to the JCA solution, you said :

* pooling of MessageListener instances so that multiple messages can be processed in parallel (e.g. if you want to process messages on a queue, you might wanna process them in parallel, using 1 MessageListener per thread or something)
What if my consumer message listener in the simple version is stateless and does not require any synchronization? Like receive message and insert message data in a database. Multiple messages should be processed in parallel. Please correct me if I'm missing something.

The simpler version is ,well, simpler compared to the JCA version and I would prefer to use it if it meets my needs.

Thanks,
Sanjiv