sconfig.setThreadModel(ReadWriteThreadModel.getInstance());
}
if (!connectorConfig.enableSSL || !connectorConfig.sslOnly)
{
AMQPFastProtocolHandler handler = new AMQPProtocolProvider().getHandler();
InetSocketAddress bindAddress;
if (bindAddr.equals("wildcard"))
{
bindAddress = new InetSocketAddress(port);
}
else
{
bindAddress = new InetSocketAddress(InetAddress.getByAddress(parseIP(bindAddr)), port);
}
acceptor.bind(bindAddress, handler, sconfig);
//fixme qpid.AMQP should be using qpidproperties to get value
_brokerLogger.info("Qpid.AMQP listening on non-SSL address " + bindAddress);
}
if (connectorConfig.enableSSL)
{
AMQPFastProtocolHandler handler = new AMQPProtocolProvider().getHandler();
try
{
acceptor.bind(new InetSocketAddress(connectorConfig.sslPort), handler, sconfig);
//fixme qpid.AMQP should be using qpidproperties to get value