Not able to use the variables stored in KVM in the Target endpoint property "io.timeout.millis" and "connect.timeout.millis" . What is the solution for it?

 
0 2 162
2 REPLIES 2

Not applicable

Hi @Minal Singh

I tested it myself and I see that the properties of HTTPTargetConnection cannot be referenced from a flow variable. I also see the need to externalize that property out side of the code and inject values depending on the environment.

Well one way to do it might be through the maven deployments, where you can specify the values in config.json and have it injected at deploy time by environment.

These links might be useful if you are not already using maven with Apigee -

https://github.com/apigee/apigee-deploy-maven-plugin

sample config.json for injecting values by env at deploy time -

https://github.com/apigee/apigee-deploy-maven-plugin/blob/master/samples/forecastweatherapi-recommen...

In the mean time I will also try getting some explanation as to why cant these fields be referenced from a variable and create a enhancement request.

I hope this helps!

-Vinit

Thanks Vinit.