camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vivek_ <vivek.parantha...@gmail.com>
Subject Default dynamic endpoint
Date Wed, 18 May 2016 09:11:19 GMT
Hi,

Is it possible to createEndpoint only one in a context, and not as many
requests, dynamically?
eg: 

   public void configure() {
				from("direct:a").
						.setHeader("host",
constant("smtp.gmail.com")).setBody(constant("body"))
						.toD((DefaultEndpoint)endpoint);
			}

toD doesn't support DefaultEndpoint hence all the time new endpoints are
created...!!

Thanks,
Vivek



--
View this message in context: http://camel.465427.n5.nabble.com/Default-dynamic-endpoint-tp5782743.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message