jms - Spring DefaultMessageListenerContainer -
here's spring jms configuration
<jms:listener-container connection-factory="connectionfactory" destination-resolver="jndidestinationresolver"> <jms:listener id = "listener1" destination ="${queue1}" ref="mylistener1" /> <jms:listener id = "listener2" destination ="${queue2}" ref="mylistener2" /> <jms:listener id = "listener3" destination ="${queue3}" ref="mylistener3" /> </jms:listener-container>
i building custom gui start or stop jms listeners. in defaultmessagelistenercontainer, have methods start , stop.
is there way find out whether listener stopped or not?
i have provide start button if it's stopped.
there method called isrunning(). helps.
Comments
Post a Comment