Package org.apache.activemq.broker

Examples of org.apache.activemq.broker.Broker.addDestination()


            if (location.exists()) {
                reader = new BufferedReader(new FileReader(location));
                String destination;
                Broker broker = getBrokerService().getBroker();
                while ((destination = reader.readLine()) != null) {
                    broker.addDestination(getBrokerService().getAdminConnectionContext(),
                            ActiveMQDestination.createDestination(destination, ActiveMQDestination.QUEUE_TYPE),
                            true);
                }
            }
        } catch (Exception e) {
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.