activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nlif <naa...@dbnet.co.il>
Subject Re: How to Pause/Resume a MessageListener?
Date Tue, 16 Jan 2007 06:14:41 GMT

pause - 

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

            for (JCAConnector connector : connectors.values())
            {
                connector.destroy();
            }

resume - 

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

            for (JCAConnector connector : connectors.values())
            {
                connector.afterPropertiesSet();
            }

Let me know if you have any questions.
-- 
View this message in context: http://www.nabble.com/How-to-Pause-Resume-a-MessageListener--tf2902158.html#a8385238
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message