OW2 Consortium joram

Compare Revisions

Ignore whitespace Rev 6470 → Rev 6471

/trunk/joram/joram/mom/core/src/main/java/org/objectweb/joram/mom/dest/DistributionModule.java
24,6 → 24,7
 
import java.util.Properties;
 
import org.objectweb.joram.shared.DestinationConstants;
import org.objectweb.joram.shared.excepts.MessageValueException;
import org.objectweb.joram.shared.messages.ConversionHelper;
import org.objectweb.joram.shared.messages.Message;
35,9 → 36,6
public class DistributionModule {
public static Logger logger = Debug.getLogger(DistributionModule.class.getName());
 
/** The property name for the distribution handler class name. */
public static final String CLASS_NAME = "distribution.className";
 
/** Holds the distribution logic. */
private DistributionHandler distributionHandler;
60,9 → 58,9
distributionHandler.init(properties, firstTime);
}
if (properties.containsKey(DistributionQueue.ASYNC_DISTRIBUTION_OPTION)) {
if (properties.containsKey(DestinationConstants.ASYNC_DISTRIBUTION_OPTION)) {
try {
isAsyncDistribution = ConversionHelper.toBoolean(properties.get(DistributionQueue.ASYNC_DISTRIBUTION_OPTION));
isAsyncDistribution = ConversionHelper.toBoolean(properties.get(DestinationConstants.ASYNC_DISTRIBUTION_OPTION));
} catch (MessageValueException exc) { }
}
}