|
|
@ -63,11 +63,11 @@ public class HttpWorkspaceConnector implements WorkspaceConnector { |
|
|
|
HttpConstants.AUTHORIZATION_PREFIX + bean.getAccessToken(), |
|
|
|
HttpConstants.AUTHORIZATION_PREFIX + bean.getAccessToken(), |
|
|
|
InetAddress.getLocalHost().getHostAddress()); |
|
|
|
InetAddress.getLocalHost().getHostAddress()); |
|
|
|
client.updateConnection(connection); |
|
|
|
client.updateConnection(connection); |
|
|
|
|
|
|
|
client.startHeartBeat(); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
client.closePool(); |
|
|
|
client.closePool(); |
|
|
|
throw e; |
|
|
|
throw e; |
|
|
|
} |
|
|
|
} |
|
|
|
client.startHeartBeat(); |
|
|
|
|
|
|
|
CompatibleRegister.registerCompatibleEnv(); |
|
|
|
CompatibleRegister.registerCompatibleEnv(); |
|
|
|
RepositoryManager.getInstance().clearLastPool(); |
|
|
|
RepositoryManager.getInstance().clearLastPool(); |
|
|
|
return client; |
|
|
|
return client; |
|
|
|