Re: Thanks and a question

2007-10-16 Thread Frederick Haebin Na
That's how I can contribute to the Mina. Oh! Gotta love this mailing list! Keep up the wonderful work, Mian Team. 2007/8/14, Trustin Lee <[EMAIL PROTECTED]>: > > Hi Charles, > > On 8/7/07, Charles Woodson <[EMAIL PROTECTED]> wrote: > > Will do, Trustin. As for making this a part of the > > gen

Implementation of isConnected()

2007-10-16 Thread chihiro
Hi, I am caching ConnectFuture in my client code and when during the call to send bytes to the server, I will test the connection by calling this isConnected() method: /** * @return true if we are connected to the remote peer, else false */ private final boolean isConnected() { IoSession s

Re: How to terminate all threads in SocketConnector ?

2007-10-16 Thread chihiro
OK. I didn't do (1) & (3). It's working wonderfully now. Thanks. Trustin Lee wrote: > > 1) Please use SimpleByteBufferAllocator: > 2) Please make sure all socket connections were closed. > 3) Did you diable ThreadModel as described in: > -- View this message in context: http://www.nabble.com

Re: How to terminate all threads in SocketConnector ?

2007-10-16 Thread Trustin Lee
1) Please use SimpleByteBufferAllocator: ByteBuffer.setAllocator(new SimpleByteBufferAllocator()); ByteBuffer.setUseDirectBuffer(false); 2) Please make sure all socket connections were closed. 3) Did you diable ThreadModel as described in: http://mina.apache.org/configuring-thread-model.html HT

Re: Thanks and a question

2007-10-16 Thread Trustin Lee
On 10/16/07, Drac <[EMAIL PROTECTED]> wrote: > > You don't need a new protocol class for this, just add a constructor overide > to the TextLineCodecFactory class (or extend the class) to take custom > encoder and decoder LineDelmiter strings like so: > > public TextLineCodecFactory(Charset charset,

Re: KeepAliveFilter

2007-10-16 Thread Trustin Lee
On 10/16/07, mat <[EMAIL PROTECTED]> wrote: > I just wonder if Mina 2.0 will adopt any KeepAliveFilter(heartbeat)? Sure we will. We will start to work on it based on Eero's donation. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x025

[jira] Commented: (DIRMINA-456) Provide mechanism for flushing writeBuffer from IoHandler.messageReceived

2007-10-16 Thread Heath Borders (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535387 ] Heath Borders commented on DIRMINA-456: --- Might that have occurred if he was running his filters in the same th

Re: ByteBuffer getString() confused after CharacterCodingException

2007-10-16 Thread Yigal Rachman
Hi, Trustin: Yep - I just installed mina 1.1.2, and ByteBuffer now passes the test. Thanks again for the swift help. Yigal Yigal Rachman wrote: Hi, Trustin: I ran your test case on my system and had the following error (which is actually different from what I am seeing!) Exception

Re: ByteBuffer getString() confused after CharacterCodingException

2007-10-16 Thread Yigal Rachman
Hi, Trustin: I ran your test case on my system and had the following error (which is actually different from what I am seeing!) Exception in thread "main" java.lang.AssertionError: expected:<12> but was:<3>     at org.junit.Assert.fail(Assert.java:71)     at org.junit.Assert.failNotEquals(Ass

Re: How to pronounce mina?

2007-10-16 Thread mat
What else can we pronounce besides "mn"? ^^ just kidding. On 10/16/07, Mark <[EMAIL PROTECTED]> wrote: > > phonetically, I pronounce it "meena" > > > On 10/16/07, tiandike <[EMAIL PROTECTED]> wrote: > > > > > > How to pronounce mina? > > -- > > View this message in context: > > > http://ww

Re: ByteBuffer getString() confused after CharacterCodingException

2007-10-16 Thread Yigal Rachman
Hi, Trustin: The call I am using is buf.getString( decoder ).  The limit does not change, but the position does; it remains at the "broken" byte.  I thought it would simply read the buffer between position() and limit() without changing anything - did I misunderstand this? Yigal Trustin Lee

Re: MINA 1.0.3 Compatibility

2007-10-16 Thread Emmanuel Lecharny
http://mina.apache.org/faq.html#FAQ-Whatisrequiredtobuild%2FrunMINA%3F On 10/16/07, Nicolas Enjolras <[EMAIL PROTECTED]> wrote: > Hi, > > I've shearched a lot on internet but I don't find any response to my > question. > > Is MINA 1.0.3 compatible with a 1.4.1 JRE ? > > If the 1.0.3 is compatible

MINA 1.0.3 Compatibility

2007-10-16 Thread Nicolas Enjolras
Hi, I've shearched a lot on internet but I don't find any response to my question. Is MINA 1.0.3 compatible with a 1.4.1 JRE ? If the 1.0.3 is compatible what is the last version of MINA compatible with JRE 1.4.1 Thanks, Nicolas.

Re: How to pronounce mina?

2007-10-16 Thread Mark
phonetically, I pronounce it "meena" On 10/16/07, tiandike <[EMAIL PROTECTED]> wrote: > > > How to pronounce mina? > -- > View this message in context: > http://www.nabble.com/How-to-pronounce-mina--tf4634201s16868.html#a13233575 > Sent from the Apache MINA Support Forum mailing list archive at N

How to pronounce mina?

2007-10-16 Thread tiandike
How to pronounce mina? -- View this message in context: http://www.nabble.com/How-to-pronounce-mina--tf4634201s16868.html#a13233575 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

[jira] Commented: (DIRMINA-455) Add XBean tag to sources to enable XBean based configuration

2007-10-16 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535207 ] Trustin Lee commented on DIRMINA-455: - I like the main idea, but I'd like to know more detail. It seems like th

Re: [VOTE] Import KeepAlive functionality contribution under MINA PMC

2007-10-16 Thread mat
Should your ActiveKeepAliveFilter, assiveKeepAliveFilter both extend IoFilterAdapter like in the tutorial "Writing IoFilter"? And you can return IoFilter in Factory method? On 10/16/07, mat <[EMAIL PROTECTED]> wrote: > > Several questions on your KeepAliveFilter. > > 1) Why createActiveKeepAlive

[jira] Resolved: (DIRMINA-452) IdentittyHashMap Iterator has bug in it.

2007-10-16 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-452. - Resolution: Fixed Assignee: Trustin Lee I replaced IdentityHashMap and IdentityHashSet wit

[jira] Resolved: (DIRMINA-454) Trivial denial of service in TextLineDecoder

2007-10-16 Thread Trustin Lee (JIRA)
[ https://issues.apache.org/jira/browse/DIRMINA-454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Trustin Lee resolved DIRMINA-454. - Resolution: Fixed Thank you very much for the patch and the inspiration. The bug has been fixed

Re: [VOTE] Import KeepAlive functionality contribution under MINA PMC

2007-10-16 Thread mat
Several questions on your KeepAliveFilter. 1) Why createActiveKeepAliveFilter, createPassiveKeepAliveFilter NOT return IoFilter(A factory method is better to return the interface instead of concrete class)? And my server or client has to extends ChainedIoHandler, otherwises, i can't use "config.ge

Re: Getting the MINA Chills

2007-10-16 Thread Niklas Therning
Rodrigo Madera wrote: So, Is mina-sm mature enough for a release? Is it going to make it soon enough? We've been using mina-sm in our spam-filtering IMAP proxy (www.spamdrain.net) for the last 6 months and we haven't had any issues with so far. In fact, I'm going to move it into MINA tru

Re: [VOTE] Import KeepAlive functionality contribution under MINA PMC

2007-10-16 Thread mat
+1 very important (Definitely a MUST filter) On 9/27/07, Mark <[EMAIL PROTECTED]> wrote: > > [X]: +1, import > > On 9/26/07, Michael Grundvig <[EMAIL PROTECTED]> wrote: > > > > +1, import > > > > - Original Message - > > From: "Trustin Lee" <[EMAIL PROTECTED]> > > To: > > Sent: Wednesday,

KeepAliveFilter

2007-10-16 Thread mat
I just wonder if Mina 2.0 will adopt any KeepAliveFilter(heartbeat)?