How to access to implicit/environment variables from code

Hello Guys:

I need to know how to get some environment variables such as wsclient-endpointAddress


Please have a look at the doc: White_Paper_-_CAF_Web_Service_Connector_Configuration.doc on this thread:

That will explain a variety of mechanisms for configuring your web service connectors. If you want to use these in your code, you would resolve the binding expressions to the local env variables. Find the variable in question from the bindings view, copy the binding expression and then if you want to access it in java, the code would be something like this:

public int getSocketTimeout() {
		Object result = resolveExpression("#{environment['wsclient-socketTimeout']}");
		return Integer.parseInt(result.toString());

Hope this helps,

1 Like