mardi 17 mars 2015

Spring JMSTEMPLATE Message Priority

I have a usecase where i need to set priority for each type of message(I have 4 different type of messages)I am using spring jsmtemplate bean injected through configuration.I have made some homework on this and got to know that as in case of JMS, setting priority level on message will not work, but if I am setting priority on jmstemplate by jmstemplate.setpriority it would work(yet to test on this) but if i am setting the priority on jmstemplate, wont this be the priority value setting for other message also since jmstemplate will be a singleton so all request will be using same jms template. or should i create new jmstemplate from connection factory before sending jms message.


We are using IBM MQ series as provider.


Please help on this. Thanks in advance.


Aucun commentaire:

Enregistrer un commentaire