title: Dispatcher has no subscribers for channel 'unknown.channel.name
body: <p>I am trying to run the publisher and subscriber, using spring binding.</p>
  
  <p>made sure the destination(exchange) is created locally on the rabbit-mq.</p>
  
  <p>publisher (app.yml)</p>
  
  <pre><code>spring:
    cloud:
      stream:
        bindings:
          output:
            destination: HelloDestination
    rabbitmq:
      addresses: xxx.xxx.xx.xxx
  </code></pre>
  
  <p>Subscriber(app.yml)</p>
  
  <pre><code>spring:
    cloud:
      stream:
        bindings:
          input:
            destination: HelloDestination
    rabbitmq:
      addresses: xxx.xxx.xx.xxx
  server:
    port: 8081
  </code></pre>
  
  <p>publisher (pom.yml)</p>
  
  <pre><code>    &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-stream-rabbit&lt;/artifactId&gt;
              &lt;version&gt;2.1.1.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-integration&lt;/artifactId&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>Subscriber (pom.yml)</p>
  
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-starter-stream-rabbit&lt;/artifactId&gt;
              &lt;version&gt;2.1.1.RELEASE&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-integration&lt;/artifactId&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>publisher (source java file)</p>
  
  <pre><code>@SpringBootApplication
  @EnableBinding(Source.class)
  public class Demo1Application {
  
      //@Autowired
      //private static MessageChannel output;
  
      public static void main(String[] args) {
          SpringApplication.run(Demo1Application.class, args);
  
          String sampleMessage = "Hello";
          Message&lt;String&gt; message =
                  MessageBuilder.withPayload("Hello World").build();
  
          MessageChannel output = new DirectChannel();
  
          output.send(message);   
  
      }
  
  }
  </code></pre>
  
  <p>//consumer (source file)</p>
  
  <pre><code>@SpringBootApplication
  @EnableBinding(Sink.class)
  public class Demo2Application {
  
      public static void main(String[] args) {
          SpringApplication.run(Demo2Application.class, args);
      }
  
      @StreamListener(Sink.INPUT)
      public void listenerMethod(Message&lt;String&gt; message)
      {
          System.out.println("The Message is :"+message);
      }
  }
  </code></pre>
  
  <p>//----</p>
  
  <p>After doing all, I see the exchange created and also the message on exchange. The consumer starts up just fine. but the producer chokes when trying to send the message with the error message</p>
  
  <pre><code>Exception in thread "main" org.springframework.messaging.MessageDeliveryException: Dispatcher has no subscribers for channel 'unknown.channel.name'.; nested exception is org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers, failedMessage=GenericMessage [payload=Hello World, headers={id=ccf86001-5dba-6c64-bc76-e1f58782de42, timestamp=1558883876384}], failedMessage=GenericMessage [payload=Hello World, headers={id=ccf86001-5dba-6c64-bc76-e1f58782de42, timestamp=1558883876384}]
      at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:77)
      at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:461)
      at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:401)
      at com.example.demo.Demo1Application.main(Demo1Application.java:29)
  Caused by: org.springframework.integration.MessageDispatchingException: Dispatcher has no subscribers, failedMessage=GenericMessage [payload=Hello World, headers={id=ccf86001-5dba-6c64-bc76-e1f58782de42, timestamp=1558883876384}]
      at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:138)
      at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:105)
      at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscri
  </code></pre>
  
  <p>I expected the message to be read.</p>