public void run() {
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG, "TcpReader.run()");
try {
while (running) {
ProxyMessage msg = ioctrl.receive();
canStop = false;
if (logger.isLoggable(BasicLevel.DEBUG))
logger.log(BasicLevel.DEBUG, "TcpReader reads msg: " + msg);
ConnectionManager.sendToProxy(proxyId,
tcpConnection.getKey(),
(AbstractJmsRequest)msg.getObject(),
msg);
canStop = true;
}
} catch (Throwable error) {
canStop = false;