OW2 Consortium joram

Compare Revisions

Ignore whitespace Rev 6473 → Rev 6474

/trunk/joram/joram/mom/core/src/main/java/org/objectweb/joram/mom/dest/AcquisitionTopic.java
25,6 → 25,7
import java.util.Properties;
 
import org.objectweb.joram.mom.notifications.ClientMessages;
import org.objectweb.joram.shared.DestinationConstants;
import org.objectweb.joram.shared.excepts.RequestException;
import org.objectweb.util.monolog.api.BasicLevel;
import org.objectweb.util.monolog.api.Logger;
128,11 → 129,11
// Acquisition class name can only be set the first time.
if (firstTime) {
if (properties != null) {
acquisitionClassName = properties.getProperty(AcquisitionModule.CLASS_NAME);
properties.remove(AcquisitionModule.CLASS_NAME);
acquisitionClassName = properties.getProperty(DestinationConstants.ACQUISITION_CLASS_NAME);
properties.remove(DestinationConstants.ACQUISITION_CLASS_NAME);
}
if (acquisitionClassName == null) {
throw new RequestException("Acquisition class name not found: " + AcquisitionModule.CLASS_NAME
throw new RequestException("Acquisition class name not found: " + DestinationConstants.ACQUISITION_CLASS_NAME
+ " property must be set on topic creation.");
}
try {