Well I knew as soon as I posted to the forum I would fix it. (Been trying to
fix it for a day on and off)
For others here the fix is below in bold.
I think the problem is the demo's have not been updated to reflect various
changes in MINA
Trustin
If I get a couple hours I will knock up a simple multiple binary message
client / server example using DemuxingProtocolCodecFactory and a
DemuxingIoHandler. 

cheers

Paul

        public NadControlClient(String host, int port,
                        NadsMessageListener messageListener) {
                this.host = host;
                this.port = port;
                this.messageListener = messageListener;
                
                connector = new
SocketConnector(Runtime.getRuntime().availableProcessors()+1,Executors.newCachedThreadPool());
          
                // Change the worker timeout to 1 second to make the I/O thread 
quit soon
                // when there's no connection to manage.
                connector.setWorkerTimeout(1);
                // Configure the service.

                cfg = new SocketConnectorConfig();
                cfg.setThreadModel(ThreadModel.MANUAL);
                cfg.setConnectTimeout(CONNECT_TIMEOUT);

                cfg.getFilterChain().addLast("codec",
                                new ProtocolCodecFilter(new 
NadsProtocolCodecFactory(false)));

                cfg.getFilterChain().addLast("logger", new LoggingFilter());

                this.addMessageHandler(SummaryMessage.class, new 
SummaryMessageHandler(
                                this.messageListener));
                this.addMessageHandler(AckMessage.class, new AckMessageHandler(
                                this.messageListener));
                this.addMessageHandler(AlarmsMessage.class, new 
AlarmsMessageHandler(
                                this.messageListener));

        }
-- 
View this message in context: 
http://www.nabble.com/Applet-not-destroying-cleanly-tf4855371s16868.html#a13896088
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to