Examples of DestinationCache


Examples of org.exolab.jms.messagemgr.DestinationCache

        int count = -1;

        try {
            // first see if the cache is loaded in memory
            JmsDestination dest = _destinations.getDestination(queue);
            DestinationCache cache = null;
            if (dest != null) {
                _database.begin();
                cache = _destinations.getDestinationCache(dest);
                // retrieve the number of handles for the cache, which
                // reflects the number of messages
                count = cache.getMessageCount();
                _database.commit();
            }
        } catch (Exception exception) {
            _log.error("Failed to get message count for queue=" + queue,
                       exception);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.