SV: Clustering support in MINA

2009-03-24 Thread Berg, Daniel
Depending on your budget you could use some sort of HA cluster software below your ip stack, for instance Sun Cluster 3. (see http://www.sun.com/blueprints/1001/scaleclstr.pdf). They have a consept of a Global network interface where several nodes in a cluster share an ip address and

Re: jvm and cached iobuffer

2009-03-24 Thread John Franey
On Thu, Mar 12, 2009 at 9:00 AM, Emmanuel Lecharny elecha...@apache.orgwrote: John Franey wrote: There is a comment on the bottom of the 2.0M4 documentation wiki: http://mina.apache.org/iobuffer.html With the new available JVM, using cached IoBuffer is very unlikely to improve

non-blocking I/O

2009-03-24 Thread Babak Farhang
Hi, I was hoping to find an example of a non-blocking I/O app using Mina and TCP transport. Looked at org.apache.mina.example.httpserver.codec.Server but that doesn't seem to be non-blocking either. Any pointers please? Regards, -Babak

Re: jvm and cached iobuffer

2009-03-24 Thread Thomas Harning Jr.
On Tue, Mar 24, 2009 at 1:25 PM, David Rosenstrauch dar...@darose.net wrote: John Franey wrote: The mina wiki mentions that automatic buffer resizing will be retracted. Boy, I hope not.  That's a *hugely* useful feature.  There's a number of cases in my app where finding out exactly how big

Re: jvm and cached iobuffer

2009-03-24 Thread John Franey
On Tue, Mar 24, 2009 at 1:45 PM, Thomas Harning Jr. harni...@gmail.comwrote: On Tue, Mar 24, 2009 at 1:25 PM, David Rosenstrauch dar...@darose.net wrote: John Franey wrote: The mina wiki mentions that automatic buffer resizing will be retracted. Boy, I hope not. That's a *hugely*

Re: jvm and cached iobuffer

2009-03-24 Thread Thomas Harning Jr.
On Tue, Mar 24, 2009 at 3:06 PM, John Franey jjfra...@gmail.com wrote: Sorry, friends.  I don't want to hit the panic button.  Maybe I'm misinterpreting things.  I submit this wiki page for your review.  Please makeup your own mind.   http://mina.apache.org/iobuffer.html Near the top of that

Re: jvm and cached iobuffer

2009-03-24 Thread Emmanuel Lecharny
Thomas Harning Jr. wrote: On Tue, Mar 24, 2009 at 1:25 PM, David Rosenstrauch dar...@darose.net wrote: John Franey wrote: The mina wiki mentions that automatic buffer resizing will be retracted. Boy, I hope not. That's a *hugely* useful feature. There's a number of cases in

Re: non-blocking I/O

2009-03-24 Thread Babak Farhang
Err.. new to Mina, and not communicating very clearly. :-x After playing with org.apache.mina.example.httpserver.codec.Server a bit more in the debugger, I see how to write a non-blocking response by first writing it to a ByteBuffer and then passing that ByteBuffer into the IoSession's write

Re: jvm and cached iobuffer

2009-03-24 Thread John Franey
On Tue, Mar 24, 2009 at 3:22 PM, Emmanuel Lecharny elecha...@apache.orgwrote: David Rosenstrauch wrote: John Franey wrote: The mina wiki mentions that automatic buffer resizing will be retracted. Boy, I hope not. That's a *hugely* useful feature. There's a number of cases in my app

Re: non-blocking I/O

2009-03-24 Thread Ashish
Not sure I understand your issue. MINA is NIO framework. The beauty is you don't need to understand NIO to work it, it gives unified API's to work with. Explore MINA core package source if need more details. Regarding, writing without using ByteBuffer, I don't think its possible in MINA. You have