clientProperties.setString(ConnectionStartProperties.PROCESS,
System.getProperty(ClientProperties.PROCESS_NAME, "Qpid Java Client"));
clientProperties.setInteger(ConnectionStartProperties.PID,
ConnectionStartProperties.getPID());
ConnectionStartOkBody connectionStartOkBody = session.getMethodRegistry().createConnectionStartOkBody(clientProperties,new AMQShortString(mechanism),saslResponse,new AMQShortString(locales));
// AMQP version change: Hardwire the version to 0-8 (major=8, minor=0)
// TODO: Connect this to the session version obtained from ProtocolInitiation for this session.
// Be aware of possible changes to parameter order as versions change.
session.writeFrame(connectionStartOkBody.generateFrame(channelId));
}
catch (UnsupportedEncodingException e)
{
throw new AMQException(null, "Unable to decode data: " + e, e);