spring - Get annoted method endpoints for JMS -
is there way through can find configured methodjmslistenerendpoint's through annotations?
i want register these end points different message listener containers.
@jmslistener(destination = "testqueue") public void process(string msg) { system.out.println(msg); } //todo connections foreach(connections){ //todo annotated endpoints prototype foreach(endpoint){ methodjmslistenerendpoint processendpoint = endpoint; registrar.registerendpoint(processendpoint,containerfactory(connection)); } }
depends on provider can use configuration customizer bean hornetqconfigurationcustomizer manipulate settings during bean initialization.
if configuration should adoptive , manageable in runtime should not use @jmslistener annotation @ all. register them in code spring advises: jms
Comments
Post a Comment