Le 11/11/13 7:01 PM, jonas85 a écrit :
> Ohh I see! Thank you very much! I think I can make something out of this. The
> solution smells a bit of recursion then, I guess..
Not exactly recursion, by asynchronous, and event driven, yes, for sure.
The thing is that you have to keep some context in the session
attributes in order for your code to work. Your code logic will look
likes something like :
messageReceived() :
process the message
prepare the responses
session.write(first response)
store the responses in the session context
messageSent() :
get the next response to send from the session context
sent it
and depends on MINA to call you as many times as you have responses to send.
--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com