Sorry to bring this topic back, but I am having a problem and am not
sure where to turn. I am using AS3 XMLSocket to send streams to a 1.1.6
Mina Server using the TextLine protocol codec. I have made the
modification that causes Mina to use \0 as the terminating character.
The problem is that in my Protocol Handler, I am not getting the XML
stream as a single document - it is breaking it apart and sending what
appears to be out of order.
I have setup the system based on the tutorial, so my main looks like:
ByteBuffer.setUseDirectBuffers(false);
ByteBuffer.setAllocator(new SimpleByteBufferAllocator());
IoAcceptor acceptor = new SocketAcceptor();
SocketAcceptorConfig cfg = new SocketAcceptorConfig();
cfg.getFilterChain().addLast( "logger", new LoggingFilter() );
cfg.getFilterChain().addLast( "codec", new ProtocolCodecFilter(
new FlashTextLineCodecFactory() ));
acceptor.bind( new InetSocketAddress(PORT), new
XMLProtocolHandler(), cfg);
System.out.println("MINA Time server started.");
Any help is greatly appreciated.