On Mar 7, 2007, at 11:53 PM, Sumit Nigam wrote:
Is there some code or config sample that tells me how to do the same in my servlet container?I have a set up wherein Apache sits in front of Resin. So, if I do put in MINA in my servlet container (or would it be that I have to write this logic in my servlet?), wouldn't the connection between Apache and Resin/ Tomcat still be a blocking call?
Well, depends on what you want to do :)If you want MINA to listen for incoming connections on another port, just set it up as a ContextListener or such.
But if you want to connect somewhere using MINA during the processing of an HTTP request, yes, you'll probably want to block to provide a synchronous reply to the client.. unless you want your HTTP client to poll the server for status.
-pete -- [EMAIL PROTECTED] - http://fotap.org/~osi
smime.p7s
Description: S/MIME cryptographic signature
