channel.dispose();
}
protected void setUp() throws Exception {
channelFactory = new SocketSynchChannelFactory();
ThreadedExecutor executor = new ThreadedExecutor();
executor.setThreadFactory(new ThreadFactory(){
int count=0;
public Thread newThread(Runnable arg0) {
return new Thread(arg0, "activeio:"+(count++));
}});
AsynchChannelFactory factory = SynchToAsynchChannelFactoryAdaptor.adapt(channelFactory,executor);