Package org.exolab.jms.client

Examples of org.exolab.jms.client.JmsQueue


    public void addDestination(Connection connection, String name,
                               boolean queue)
            throws PersistenceException {

        JmsDestination destination = (queue)
                ? (JmsDestination) new JmsQueue(name)
                : (JmsDestination) new JmsTopic(name);

        // create the destination. If the destination is also
        // a queue create a special consumer for it.
        try {
View Full Code Here


        for (int i = 0; i < queues.length; ++i) {
            final AdministeredQueue queue = queues[i];
            final String name = queue.getName();

            if (_destinations.getDestination(name) == null) {
                JmsQueue destination = new JmsQueue(name);
                destination.setPersistent(true);
                try {
                    _destinations.createDestination(destination);
                } catch (JMSException exception) {
                    _log.error("Failed to register persistent queue " + name,
                               exception);
View Full Code Here

            long Id = 0;
            while (set.next()) {
                name = set.getString(1);
                isQueue = set.getBoolean(2);
                destination = (isQueue)
                        ? (JmsDestination) new JmsQueue(name)
                        : (JmsDestination) new JmsTopic(name);
                Id = set.getLong(3);
                destination.setPersistent(true);
                cache(destination, Id);
            }
View Full Code Here

        boolean success = false;

        // create the appropriate destination object
        JmsDestination destination = (queue.booleanValue())
                ? (JmsDestination) new JmsQueue(name)
                : (JmsDestination) new JmsTopic(name);
        destination.setPersistent(true);

        // create the administered destination
        try {
View Full Code Here

            while (set.next()) {
                long destinationId = set.getLong("destination_id");
                String name = set.getString("name");
                boolean isQueue = set.getBoolean("is_queue");
                JmsDestination destination = (isQueue)
                    ? (JmsDestination) new JmsQueue(name)
                    : (JmsDestination) new JmsTopic(name);
                destination.setPersistent(true);
                cache(destination, destinationId);
            }
        } catch (SQLException exception) {
View Full Code Here

            if (set.next()) {
                String name = set.getString(1);
                String clientId = set.getString(2);
                boolean isQueue = set.getBoolean(3);
                if (isQueue) {
                    result = new Consumer(new JmsQueue(name));
                } else {
                    result = new Consumer(name, clientId);
                }
                getSubscriptions(consumerId, result);
            }
View Full Code Here

TOP

Related Classes of org.exolab.jms.client.JmsQueue

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.