NioSocketAcceptor acceptor = new NioSocketAcceptor();
acceptor.getFilterChain().addLast(decoder, new ProtocolCodecFilter(new ProtocolCodecFactory(new HL7ProtocolDecoder()));
acceptor.getFilterChain().addLast(fileter1, new InitFilter(l));
acceptor.getFilterChain().addLast(fileter2, new MessageFilter());
acceptor.getFilterChain().addLast(fileter2, new NavikTssListenerHandler(senderList));

Now to unbind th conncetion for some specific time I used
acceptor.unbind()
acceptor.dispose()

Now I want restart same acceptor I have used
acceptor.bind()

This throw an exception java.lang.IllegalStateException: Already disposed.

So how can I restart the  same acceptor?

Reply via email to