String[] usedJNDI = bindings.toArray(new String[bindings.size()]);
addToBindings(queueJNDI, queueName, usedJNDI);
if (storeConfig && durable)
{
storage.storeDestination(new PersistedDestination(PersistedType.Queue, queueName, selectorString, durable));
storage.addJNDI(PersistedType.Queue, queueName, usedJNDI);
}
return added;
}