/** {@inheritDoc} */
public synchronized void stop(final StopContext context) {
// JMS Server Manager uses locking which waits on service completion, use async to prevent starvation
context.asynchronous();
final JMSServerManager jmsManager = jmsServer.getValue();
executorInjector.getValue().execute(new Runnable() {
@Override
public void run() {
try {
jmsManager.removeQueueFromJNDI(queueName);
} catch (Throwable e) {
MESSAGING_LOGGER.failedToDestroy(e, "queue", queueName);
}
context.complete();
}