Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18986

camel-core - ProducerTemplate send exchange should set from endpoint if null

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.20.1
    • 3.21.0, 4.0-M2, 4.0.0
    • camel-core
    • None
    • Unknown

    Description

      These two are not the same

      	@Test
      	@DisplayName("This one is ok")
      	@Order(2)
      	public void repoCaseOk() throws Exception{
      		producer1.sendBody("hello");
      	}
      
      	@Test
      	@DisplayName("This one fails with 3.20.1")
      	@Order(2)
      	public void repoCaseFail() throws Exception{
      		var exchange=
      			ExchangeBuilder
      				.anExchange(context)
      				.withBody  ("hello")
      				.build     ();
      		logger.info("From endpoint: {}",exchange.getFromEndpoint());
      		producer1.send(exchange);
      	}
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: