All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wildfly.extras.creaper.commands.messaging.RemoveQueue.groovy Maven / Gradle / Ivy

There is a newer version: 2.0.3
Show newest version
def queueAddress = null

if (messagingActivemq) {
    queueAddress = messagingActivemq.server.'jms-queue'
} else if ( messagingHornetq) {
    queueAddress = messagingHornetq.'hornetq-server'.'jms-destinations'.'jms-queue'
}
if (!queueAddress) {
    throw new IllegalStateException("Neither ActiveMQ nor HornetQ messaging subsystem exists in configuration")
}

def queue = queueAddress.find { it.@name == queueName }
if (!queue) {
    throw new IllegalStateException("Can't remove queue $queueName as it does not exist in the configuration")
}

queue.replaceNode {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy