Hi I have also tried without dispose() then it throws exception Address
Already in Use
for that I have used
acceptor.getSessionConfig.setReuseAddress(true); though it throws same
exception
Any solution?
On 02/24/2014 11:54 AM, Hardik Kubavat wrote:
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?