What are the advantages of using DefaultJmsListenerContainerFactory
over DefaultMessageListenerContainer
?
If i configure DMLC directly , i do get a handle to check the status by calling
isRunning()
. Also i do get a facility to start and stop the DMLCHowever, per new spring specs, if i configure
DefaultJmsListenerContainerFactory
, i do not get handle of DMLC, so i am unable to do any of above operations.
So looking at above limitation, can somebody explain why one should use DefaultJmsListenerContainerFactory
over DMLC
Also, if i use DefaultJmsListenerContainerFactory
, what are the ways to achive above functionality?