int heartBeat) throws Exception {
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG,
"SoapProxyService.setConnection(" + identityMap + ',' + heartBeat + ')');
Identity identity = (Identity) Identity.soapDecode(identityMap);
GetProxyIdNot gpin = new GetProxyIdNot(identity, null);
gpin.invoke(AdminTopic.getDefault());
AgentId proxyId = gpin.getProxyId();
OpenConnectionNot ocn = new OpenConnectionNot(false, heartBeat);
ocn.invoke(proxyId);
StandardConnectionContext cc = (StandardConnectionContext) ocn.getConnectionContext();
ProxyConnectionContext pcc = new ProxyConnectionContext(proxyId, cc.getQueue());
connections.put(new ConnectionKey(identity.getUserName(), cc.getKey()), pcc);
return cc.getKey();
}