use of org.apache.activemq.artemis.api.core.SimpleString in project wildfly by wildfly.
the class QueueService method start.
/** {@inheritDoc} */
@Override
public synchronized void start(StartContext context) throws StartException {
try {
final ActiveMQServer server = this.activeMQServer.getValue();
server.deployQueue(new SimpleString(queueConfiguration.getAddress()), new SimpleString(queueConfiguration.getName()), SimpleString.toSimpleString(queueConfiguration.getFilterString()), queueConfiguration.isDurable(), temporary);
} catch (Exception e) {
throw new StartException(e);
}
}
use of org.apache.activemq.artemis.api.core.SimpleString in project wildfly by wildfly.
the class QueueService method stop.
/** {@inheritDoc} */
@Override
public synchronized void stop(StopContext context) {
try {
final ActiveMQServer server = this.activeMQServer.getValue();
server.destroyQueue(new SimpleString(queueConfiguration.getName()), null, false);
} catch (Exception e) {
MessagingLogger.ROOT_LOGGER.failedToDestroy("queue", queueConfiguration.getName());
}
}
Aggregations