What if the client writes multiple requests at once as follows. <root><msg>this is message 1</msg></root><root><msg>this is message 2</msg></root>
How does the messageReceived() see it? How do I seperate and process these 2 xml messages (remember there are no controll characters seperating the xml documents) and send the corresponding 2 response messages back? Will it be through the same IOSession? Please bear with me if these questions sound silly, as I am trying to better understand how MINA works. Andres Martinez Quijano wrote: > > On Tue, Oct 21, 2008 at 5:44 AM, Maarten Bosteels > <[EMAIL PROTECTED]> wrote: >> Emmanual, I am afraid this only holds when there is at least one newline >> between two xml messages. >> Suppose the incoming xml looks like this: >> >> <root><msg>this is message 1</msg></root><root>CRLF >> <msg>this is message 2</msg></root> >> >> I agree that it's unlikely but who knows ... >> >> Maarten > > That's not well-formed XML, it should have only one root node, so you > can search for it and it's closing, whichever line is it into > > -- View this message in context: http://www.nabble.com/MINA---design-guidelines-tp20077627p20091310.html Sent from the Apache MINA User Forum mailing list archive at Nabble.com.
