Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Information Provided
-
None
-
None
-
Unknown
Description
Configuring the Salesforce is quite complex compared to other complex as it requires to write some java beans:
SalesforceComponent component = new SalesforceComponent(); SalesforceEndpointConfig config = new SalesforceEndpointConfig(); SalesforceLoginConfig loginConfig = new SalesforceLoginConfig(); loginConfig.setType(AuthenticationType.REFRESH_TOKEN); loginConfig.setClientId(properties.getProperty("clientId")); loginConfig.setClientSecret(properties.getProperty("clientSecret")); loginConfig.setRefreshToken(properties.getProperty("refreshToken")); component.setPackages("org.apache.camel.example.salesforce"); component.setConfig(config); component.setLoginConfig(loginConfig);
It would be nice if most of the configuration could be done with uri params only and to require to write beans only for really advanced options.