Examples of UpdateFailedException


Examples of org.jboss.as.model.UpdateFailedException

    }

    protected AbstractLoggerElement<?> addNewElement(final LoggingSubsystemElement element) throws UpdateFailedException {
        final RootLoggerElement newElement = new RootLoggerElement();
        if (!element.setRootLogger(newElement)) {
            throw new UpdateFailedException("Root logger already defined");
        }
        return newElement;
    }
View Full Code Here

Examples of org.jboss.as.model.UpdateFailedException

     * {@inheritDoc}
     */
    protected void applyUpdate(LoggingSubsystemElement element) throws UpdateFailedException {
        final AbstractLoggerElement<?> logger = element.clearRootLogger();
        if (logger == null) {
            throw new UpdateFailedException("Root logger not defined");
        }
    }
View Full Code Here

Examples of org.jboss.as.model.UpdateFailedException

    }

    /** {@inheritDoc} */
    protected void applyUpdate(MessagingSubsystemElement element) throws UpdateFailedException {
        if(! element.removeQueue(name)) {
            throw new UpdateFailedException(String.format("queue (%s) does not exist", name));
        }
    }
View Full Code Here

Examples of org.jboss.as.model.UpdateFailedException

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        final JMSTopicElement topic = element.addTopic(name);
        if(topic == null) {
            throw new UpdateFailedException("duplicate topic " + name);
        }
        topic.setBindings(bindings);
    }
View Full Code Here

Examples of org.jboss.as.model.UpdateFailedException

    }

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        if(! element.removeQueue(queueName)) {
            throw new UpdateFailedException(String.format("queue (%s) does not exist", queueName));
        }
    }
View Full Code Here

Examples of org.jboss.as.model.UpdateFailedException

    }

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        if(! element.addConnectionFactory(cf)) {
            throw new UpdateFailedException("duplicate connection-factory " + cf.getName());
        }
    }
View Full Code Here

Examples of org.jboss.as.model.UpdateFailedException

    }

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        if(! element.removeConnectionFactory(cfName)) {
            throw new UpdateFailedException(String.format("connection-factory (%s) does not exist", cfName));
        }
    }
View Full Code Here

Examples of org.jboss.as.model.UpdateFailedException

    /** {@inheritDoc} */
    protected void applyUpdate(MessagingSubsystemElement element) throws UpdateFailedException {
        final QueueElement queue = element.addQueue(name);
        if(queue == null) {
            throw new UpdateFailedException("duplicate queue " + name);
        }
        queue.setAddress(address);
        queue.setFilter(filter);
        if(durable != null) queue.setDurable(durable);
    }
View Full Code Here

Examples of org.jboss.as.model.UpdateFailedException

    }

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        if(! element.removeTopic(topicName)) {
            throw new UpdateFailedException(String.format("topic (%s) does not exist", topicName));
        }
    }
View Full Code Here

Examples of org.jboss.as.model.UpdateFailedException

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        final JMSQueueElement queue = element.addQueue(name);
        if(queue == null) {
            throw new UpdateFailedException("duplicate queue " + name);
        }
        queue.setBindings(bindings);
        queue.setSelector(selector);
        queue.setDurable(durable);
    }
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.