James,

This is how I do it:

            Map<String, JCAConnector> connectors =
context.getBeansOfType(JCAConnector.class);

            for (JCAConnector connector : connectors.values())
            {
                connector.afterPropertiesSet();
               // OR - connector.destroy();
            }

Where do you think the pause/resume API should reside? The JCAContainer
class? Anywhere else?

Naaman
-- 
View this message in context: 
http://www.nabble.com/How-to-Pause-Resume-a-MessageListener--tf2902158.html#a8385285
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to