ConfigMap deliverySettings = jms.getPropertyAsMap(DELIVERY_SETTINGS, null);
if (deliverySettings != null)
{
// Get the default delivery settings.
DeliverySettings ds = settings.getDeliverySettings();
String mode = deliverySettings.getPropertyAsString(MODE, JMSConfigConstants.defaultMode);
ds.setMode(mode);
long receiveIntervalMillis = deliverySettings.getPropertyAsLong(SYNC_RECEIVE_INTERVAL_MILLIS, defaultSyncReceiveIntervalMillis);
ds.setSyncReceiveIntervalMillis(receiveIntervalMillis);
long receiveWaitMillis = deliverySettings.getPropertyAsLong(SYNC_RECEIVE_WAIT_MILLIS, defaultSyncReceiveWaitMillis);
ds.setSyncReceiveWaitMillis(receiveWaitMillis);
}
String destJNDI = jms.getPropertyAsString(DESTINATION_JNDI_NAME, null);
settings.setDestinationJNDIName(destJNDI);