Package org.exolab.jms.client

Examples of org.exolab.jms.client.JmsDestination


     * specified message cache has been added.
     *
     * @param cache the added cache
     */
    private void notifyCacheAdded(DestinationCache cache) {
        JmsDestination destination = cache.getDestination();
        DestinationEventListener[] listeners = getListeners();
        for (int i = 0; i < listeners.length; ++i) {
            listeners[i].cacheAdded(destination, cache);
        }
    }
View Full Code Here


     * specified message cache has been removed.
     *
     * @param cache the added cache
     */
    private void notifyCacheRemoved(DestinationCache cache) {
        JmsDestination destination = cache.getDestination();
        DestinationEventListener[] listeners = getListeners();
        for (int i = 0; i < listeners.length; ++i) {
            listeners[i].cacheRemoved(destination, cache);
        }
    }
View Full Code Here

     * @throws InvalidDestinationException if the named destination doesn't
     *                                     exist
     */
    private JmsDestination getExistingDestination(String name)
            throws InvalidDestinationException {
        JmsDestination destination = getDestination(name);
        if (destination == null) {
            throw new InvalidDestinationException(
                    "Destination does not exist:" + name);
        }
        return destination;
View Full Code Here

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

            set = select.executeQuery();
            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) {
            throw new PersistenceException("FGailed to load destinations",
                                           exception);
View Full Code Here

            select.setLong(1, consumerId);

            set = select.executeQuery();
            while (set.next()) {
                long destinationId = set.getLong("destination_id");
                JmsDestination destination = _destinations.get(destinationId);
                if (destination == null) {
                    throw new PersistenceException(
                            "Failed to locate destination for id="
                            + destinationId);
                }
View Full Code Here

TOP

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

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.