Hi Malaka,

We can define endpoint templates within the connector definition and pass
the parameters when calling those connector operations from within the
synapse configuration as you have pointed out.

On Wed, Jan 27, 2016 at 9:57 AM, Malaka Silva <mal...@wso2.com> wrote:

> Hi All,
>
> Currently we are using mainly call mediator in connectors. However
> currently endpoint settings are static and hardcoded with the connector.
>
> Only way to change this is manually update the zip file. This is not the
> best solution.
>
> We need to find a way to set this values from esb connector configuration.
> (In INIT method)
>
> eg:
> <salesforce.init>
>     <username>x...@abc.com</username>
>     <password>xxxxx</password>
>     <loginUrl>https://login.salesforce.com/services/Soap/u/27.0</loginUrl>
>
> <!-- Optional Params -->
> *    <blocking>false</blocking>*
> * <timeout>60000</timeout>*
> .....
> </salesforce.init>
>
> Suggestions are welcome to find the best way to do this?
>
> (https://store.wso2.com/store/assets/esbconnector)
>
> <endpoint name="Sample_First" statistics="enable" >
>     <address uri="http://localhost/myendpoint";
> <http://localhost/myendpoint> statistics="enable" trace="disable">
>         <timeout>
>             <duration>60000</duration>
>         </timeout>
>
>         <markForSuspension>
>             <errorCodes>101504, 101505</errorCodes>
>             <retriesBeforeSuspension>3</retriesBeforeSuspension>
>             <retryDelay>1</retryDelay>
>         </markForSuspension>
>
>         <suspendOnFailure>
>             <errorCodes>101500, 101501, 101506, 101507, 101508
> </errorCodes>
>             <initialDuration>1000</initialDuration>
>             <progressionFactor>2</progressionFactor>
>             <maximumDuration>60000</maximumDuration>
>         </suspendOnFailure>
>
>     </address>
> </endpoint>
>
> [1]
> https://docs.wso2.com/display/ESB490/Endpoint+Error+Handling#EndpointErrorHandling-
> "Timeout"settingstimeoutSettings
>



-- 
Thank you and Best Regards,
Chanaka Fernando
Senior Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
_______________________________________________
Architecture mailing list
Architecture@wso2.org
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to