*/
private void createAdapter(HTTPProxyDestination proxyDest)
{
// Create an adapter for the destination
SOAPProxyAdapter proxyAdapter = new SOAPProxyAdapter();
// Set adapter's id
proxyAdapter.setId("runtime-soap-proxy");
// Set adapter's management property
proxyAdapter.setManaged(true);
// Set adapter's parent (which also sets destination's adapter)
//proxyAdapter.setDestination(proxyDest);
// Alternatively, we could have set destination's adapter
proxyDest.setAdapter(proxyAdapter);
// Set some adapter properties
proxyAdapter.setAllowLaxSSL(true);
int maxTotal = 100;
int defaultMaxConnsPerHost = 2;
HTTPConnectionManagerSettings connectionParams = new HTTPConnectionManagerSettings();
connectionParams.setMaxTotalConnections(maxTotal);
connectionParams.setDefaultMaxConnectionsPerHost(defaultMaxConnsPerHost);
proxyAdapter.setConnectionManagerSettings(connectionParams);
}