java - JmsTemplate - define concurrency per queue? -


So far, I'm only able to get concurrency settings in the jms connection factory:

  & Lt; Jms: listener-container connection-factory = "myConnectionFactory" functionalist = "myTaskExecutor" destination-resolver = "myDestinationResolver" transaction-manager = "myTransactionManager" concurrency = "10" & gt;  

Is it possible to configure the number of consumers for a single queue? Something like:

  & lt; Jms: listener destination = "player STatsQueue" ref = "playerStatsService" method = "onMessage" concurrency = "100" />  

Thanks! Do not use namespace

but an intangible parent DefaultMessageListenerContainer and per listener Make a child example per copy. In this way you can definitely change all the qualities.

  & lt; Bean id = "parentContainer" abstract = "true" class = "org.springframework.jms.listener.DefaultMessageListenerContainer" & gt; & Lt; Property Name = "connectionFactory" ref = "connectionFactory" /> & Lt; Property Name = "Message Listener" Riff = "Message Listener" / & gt; & Lt; Property Name = "transactionManager" Reference = "Transaction Manager" / & gt; & Lt; / Bean & gt; & Lt; Bean id = "PlayerStats Listener Parent =" Parent Container "> Property Name =" Destination "Riff =" PlayerStat QUU "/> Property Name =" Listener "Riff =" PlayerStats Service "/> gt; & lt; Property Name = "Concurrency" value = "100" /> gt;   

Comments