private void populateConfiguration( ContainerConfiguration configuration, JmsBindingMetadata metadata) { CacheLevel cacheLevel = metadata.getCacheLevel(); if (CONNECTION == cacheLevel) { configuration.setCacheLevel(CACHE_CONNECTION); } else if (ADMINISTERED_OBJECTS == cacheLevel) { configuration.setCacheLevel(CACHE_ADMINISTERED_OBJECTS); } else { configuration.setCacheLevel(CACHE_NONE); } configuration.setIdleLimit(metadata.getIdleLimit()); configuration.setMaxMessagesToProcess(metadata.getMaxMessagesToProcess()); configuration.setMaxReceivers(metadata.getMaxReceivers()); configuration.setMinReceivers(metadata.getMinReceivers()); configuration.setReceiveTimeout(metadata.getReceiveTimeout()); configuration.setSubscriptionId(metadata.getSubscriptionId()); configuration.setDurable(metadata.isDurable()); // configuration.setDeliveryMode(); // configuration.setExceptionListener(); // configuration.setLocalDelivery(); }