Package org.exolab.jms.tools.migration.proxy

Examples of org.exolab.jms.tools.migration.proxy.Consumer


     * @throws PersistenceException for any persistence error
     */
    public void importCollection(StoreIterator iterator) throws JMSException,
                                                                PersistenceException {
        while (iterator.hasNext()) {
            Consumer consumer = (Consumer) iterator.next();
            add(consumer);
        }
    }
View Full Code Here


            if (destination instanceof JmsTopic) {
                Enumeration names = _database.getAdapter().getDurableConsumers(
                        connection, destination.getName());
                while (names.hasMoreElements()) {
                    String name = (String) names.nextElement();
                    Consumer consumer = (Consumer) consumers.get(name);
                    if (consumer == null) {
                        consumer = new Consumer(name, null);
                        consumers.put(name, consumer);
                    }
                    Subscription subscription = getSubscription(name,
                                                                destination);
                    consumer.addSubscription(subscription);
                }
            } else {
                final String name = destination.getName();
                Consumer consumer = (Consumer) consumers.get(name);
                if (consumer == null) {
                    consumer = new Consumer((JmsQueue) destination);
                    consumers.put(name, consumer);
                }
                Subscription subscription = getSubscription(name, destination);
                consumer.addSubscription(subscription);
            }
        }
        _database.commit();
        return consumers.values();
    }
View Full Code Here

TOP

Related Classes of org.exolab.jms.tools.migration.proxy.Consumer

Copyright © 2018 www.massapicom. 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.