camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Dillon <ja...@planet57.com>
Subject How to configure default endpoint
Date Wed, 30 Nov 2011 00:31:48 GMT
The ProducerTemplate (2.8.3) javadocs talk about methods that send to "to the default endpoint"...
but how does one configure that that endpoint is?

I see that DefaultProducerTemplate has methods like:

public void setDefaultEndpointUri(String endpointUri) {
public void setDefaultEndpoint(Endpoint defaultEndpoint) {

But these are not on ProducerTemplate.  CamelContext.createProducerTemplate() returns a ProducerTemplate,
so to set the default you need to cast?  Really?

Is this an oversight or by design?

--jason
Mime
View raw message