mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-4950: fix the problem to support sessions to multiple vCenter instance
This commit is contained in:
parent
a1be4fffe5
commit
ed0fbcc81c
@ -88,8 +88,6 @@ public class VmwareClient {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
HttpsURLConnection.setDefaultHostnameVerifier(hv);
|
HttpsURLConnection.setDefaultHostnameVerifier(hv);
|
||||||
|
|
||||||
vimService = new VimService();
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -107,7 +105,7 @@ public class VmwareClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private ManagedObjectReference SVC_INST_REF = new ManagedObjectReference();
|
private ManagedObjectReference SVC_INST_REF = new ManagedObjectReference();
|
||||||
private static VimService vimService;
|
private VimService vimService;
|
||||||
private VimPortType vimPort;
|
private VimPortType vimPort;
|
||||||
private String serviceCookie;
|
private String serviceCookie;
|
||||||
private final String SVC_INST_NAME = "ServiceInstance";
|
private final String SVC_INST_NAME = "ServiceInstance";
|
||||||
@ -127,6 +125,7 @@ public class VmwareClient {
|
|||||||
SVC_INST_REF.setType(SVC_INST_NAME);
|
SVC_INST_REF.setType(SVC_INST_NAME);
|
||||||
SVC_INST_REF.setValue(SVC_INST_NAME);
|
SVC_INST_REF.setValue(SVC_INST_NAME);
|
||||||
|
|
||||||
|
vimService = new VimService();
|
||||||
vimPort = vimService.getVimPort();
|
vimPort = vimService.getVimPort();
|
||||||
Map<String, Object> ctxt = ((BindingProvider) vimPort).getRequestContext();
|
Map<String, Object> ctxt = ((BindingProvider) vimPort).getRequestContext();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user