To start and stop my flows, I used to start and stop the whole context.
However, following the discussion http://forum.springsource.org/showthread.php?t=95050 , I wanted to try to stop my flow by stopping the inbound channel adapter through JMX.
I encountered two issues:
1. It happens, that the <int-jms:message-driven-channel-adapter> does not seem to be exposed as a MessageSource (I checked from the jconsole).
Is there any reason why it isn't exposed?
2. So I tried to use a <int-jms:inbound-channel-adapter>. This one is exposed as a MessageSource, but then, stopping the endpoint doesn't actually stop it from reading from the JMS Destination ; it then just loops and keeps trying until the endpoint is started again ("looping" maybe because of my transactional context, though I'm not sure it's related).
Is there any reason why it still keeps reading on the JMS Destination and loops even though the endpoint is stopped?