Yes i did take a look at the proxy example and what i implemented is also similar to that. I have the following understanding of how Mina handles the request, please correct me if am wrong. The execution for each new message coming on one connector till it is written onto the other connector happens in a single thread. (i tried printing the name of the thread in all these routines and noticed same name). and if another message comes during this period, another thread is being created.
vishal elihusmails wrote: > > Did you take a look at the proxy example? I this is may assist you in > developing a solution. > > --Mark > > On Nov 12, 2007 4:15 AM, Vishal_Jain <[EMAIL PROTECTED]> wrote: >> >> Hi All, >> >> Am implementing a proxy like system that has 2 connectors (taking on one >> end >> and transferring onto the other). >> what i basically do in the MessageReceived routine of connector1 is call >> the >> IoSession.write of connector2 and that in turn invokes the >> ProtocolDecoder >> (yes am using a Protocol filter on both connectors). If am expected to >> handle lot of messages on connector1, would a straightforward >> IoSesssion.write() be sufficient or its better to have a Queue that would >> have all the incoming requests and then i read the requests on a separate >> thread and call connector2's IoSession ? >> >> vishal >> -- >> View this message in context: >> http://www.nabble.com/Proxy-design-query-tf4789817s16868.html#a13702157 >> Sent from the Apache MINA Support Forum mailing list archive at >> Nabble.com. >> >> > > > > -- > -------------------------------- > The adjuration to be "normal" seems shockingly repellent to me; I see > neither hope nor comfort in sinking to that low level. I think it is > ignorance that makes people think of abnormality only with horror and > allows them to remain undismayed at the proximity of "normal" to > average and mediocre. For surely anyone who achieves anything is, > essentially, abnormal. > Dr. Karl Menninger > > -- View this message in context: http://www.nabble.com/Proxy-design-query-tf4789817s16868.html#a13719606 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.
