Confusion on concurrency in Listener template
I have few confusion. I will really appreciate if someone correct me.
In Spring messaging, we have 2 things
1) JMS Listener Container
2) Message Driven POJP (MDP) - Which is a consumer (like EJB MDB)
Now, in Listener Container we have a "concurrency" attribute. By "concurrency" what I understand is that the number of MDP instance to be created for a single Listener container. Please let me know whether my understanding is correct or not.
As I understand everything in Spring by default is Singleton bean but if we mention the "concurrency" value more than 1, MDP will no longer be singleton. Please correct my understanding.
B) Please let me know if there could be any thread related issue in MDP.
C) I am also confused about the behavior of "prefetch" attribute
Thanks a lot.