Commit 9894a8d1 authored by afreyssin's avatar afreyssin
Browse files

Use DestinationConstants shared definition.

parent 2d76f66b
......@@ -24,6 +24,7 @@ package org.objectweb.joram.mom.dest;
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 @@ import fr.dyade.aaa.common.Debug;
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 @@ public class DistributionModule {
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) { }
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment