{
_logger.info("Creating InVM Qpid.AMQP listening on port " + port);
IoHandlerAdapter provider = null;
try
{
VmPipeAddress pipe = new VmPipeAddress(port);
provider = createBrokerInstance(port);
_acceptor.bind(pipe, provider);
_inVmPipeAddress.put(port, pipe);
_logger.info("Created InVM Qpid.AMQP listening on port " + port);
}
catch (IOException e)
{
_logger.error("Got IOException.", e);
// Try and unbind provider
try
{
VmPipeAddress pipe = new VmPipeAddress(port);
try
{
_acceptor.unbind(pipe);
}