OW2 Consortium joram

Compare Revisions

Ignore whitespace Rev 6475 → Rev 6476

/trunk/joram/joram/mom/core/src/main/java/org/objectweb/joram/mom/dest/Destination.java
53,6 → 53,7
import org.objectweb.joram.mom.util.DMQManager;
import org.objectweb.joram.mom.util.InterceptorsHelper;
import org.objectweb.joram.mom.util.MessageInterceptor;
import org.objectweb.joram.shared.DestinationConstants;
import org.objectweb.joram.shared.MessageErrorConstants;
import org.objectweb.joram.shared.admin.AdminCommandConstant;
import org.objectweb.joram.shared.admin.AdminCommandReply;
98,11 → 99,8
* MOM destinations.
*/
public abstract class Destination extends Agent implements DestinationMBean {
 
public static Logger logger = Debug.getLogger(Destination.class.getName());
public static final String WAKEUP_PERIOD = "period";
/**
* <code>true</code> if the destination successfully processed a deletion
* request.
366,9 → 364,9
}
 
long newPeriod = -1;
if (prop != null && prop.containsKey(WAKEUP_PERIOD)) {
if (prop != null && prop.containsKey(DestinationConstants.WAKEUP_PERIOD)) {
try {
newPeriod = ConversionHelper.toLong(prop.get(WAKEUP_PERIOD));
newPeriod = ConversionHelper.toLong(prop.get(DestinationConstants.WAKEUP_PERIOD));
} catch (Exception e) {
logger.log(BasicLevel.ERROR, this + ": error setting destination period", e);
}