|
|
|
@ -39,7 +39,6 @@ import org.springframework.cloud.stream.provisioning.ConsumerDestination;
|
|
|
|
|
import org.springframework.cloud.stream.provisioning.ProducerDestination;
|
|
|
|
|
import org.springframework.integration.StaticMessageHeaderAccessor;
|
|
|
|
|
import org.springframework.integration.acks.AcknowledgmentCallback;
|
|
|
|
|
import org.springframework.integration.acks.AcknowledgmentCallback.Status;
|
|
|
|
|
import org.springframework.integration.channel.AbstractMessageChannel;
|
|
|
|
|
import org.springframework.integration.core.MessageProducer;
|
|
|
|
|
import org.springframework.integration.support.DefaultErrorMessageStrategy;
|
|
|
|
@ -47,7 +46,6 @@ import org.springframework.integration.support.ErrorMessageStrategy;
|
|
|
|
|
import org.springframework.messaging.MessageChannel;
|
|
|
|
|
import org.springframework.messaging.MessageHandler;
|
|
|
|
|
import org.springframework.messaging.MessagingException;
|
|
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
import org.springframework.util.StringUtils;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -116,7 +114,7 @@ public class RocketMQMessageChannelBinder extends
|
|
|
|
|
ExtendedConsumerProperties<RocketMQConsumerProperties> extendedConsumerProperties)
|
|
|
|
|
throws Exception {
|
|
|
|
|
// todo support anymous consumer
|
|
|
|
|
if (StringUtils.isEmpty(group)) {
|
|
|
|
|
if (!StringUtils.hasLength(group)) {
|
|
|
|
|
throw new RuntimeException(
|
|
|
|
|
"'group must be configured for channel " + destination.getName());
|
|
|
|
|
}
|
|
|
|
|