You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Trustin Lee <tr...@gmail.com> on 2005/04/28 13:42:52 UTC

[mina] Major change: Per-Session filter chains

Hi,

As Vinod and Noel's request, I added support for 'per-session filter
chains'.  Besides that, There were some more changes.

1) BaseSession, BaseSessionConfig, and BaseSessionManager is moved to
org.apache.mina.common package which is more adequate.

2) IoSessionManager and ProtocolSessionManager that extends
SessionManager are added.  all getFilterChain() methods of acceptors
and connectors moved there.

3) in-VM pipe cummunication had not been working since I revamped
filter chain interface, and it is fixed now.  Sorry for low coverage!

4) Added more public (or public abstract) classes to help users to
implement their own transport type.

Now let's talk about the per-session filter chain.

You can get the chain by calling session.getFilterChain().  The usage
is identical with acceptor.getFilterChain(), so you'll be able to use
it with zero learning curve.  Adding and removing chains are
thread-safe if and only if you implement all your protocol logic in
your IoHandlers and ProtocolHandlers.  But please note that adding and
removing filters while session is busy is not recommended.  (TLS
should be OK.)

I tested this new MINA by myself, but there might be some issues I
couldn't catch.  Apologies in advance!  ;)

Thank you,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/

Re: [mina] Major change: Per-Session filter chains

Posted by Alex Karasulu <ao...@bellsouth.net>.
Vinod Panicker wrote:

>Hi Trustin,
>
>Never had a wish get fulfilled that fast!
>
>Great work on the changes.  No doubt that MINA is gonna go places.
>
>Regards,
>Vinod.
>
>On 4/28/05, Trustin Lee <tr...@gmail.com> wrote:
>  
>
>>Hi,
>>
>>As Vinod and Noel's request, I added support for 'per-session filter
>>chains'.  Besides that, There were some more changes.
>>
>>    
>>
>--snip--
>
>  
>
I did not even have time to express my wish for StartTLS ...

Great job Trustin!
Alex

Re: [mina] Major change: Per-Session filter chains

Posted by Alex Karasulu <ao...@bellsouth.net>.
Vinod Panicker wrote:

>Hi Trustin,
>
>Never had a wish get fulfilled that fast!
>
>Great work on the changes.  No doubt that MINA is gonna go places.
>
>Regards,
>Vinod.
>
>On 4/28/05, Trustin Lee <tr...@gmail.com> wrote:
>  
>
>>Hi,
>>
>>As Vinod and Noel's request, I added support for 'per-session filter
>>chains'.  Besides that, There were some more changes.
>>
>>    
>>
>--snip--
>
>  
>
I did not even have time to express my wish for StartTLS ...

Great job Trustin!
Alex

Re: [mina] Major change: Per-Session filter chains

Posted by Alex Karasulu <ao...@bellsouth.net>.
Vinod Panicker wrote:

>Hi Trustin,
>
>Never had a wish get fulfilled that fast!
>
>Great work on the changes.  No doubt that MINA is gonna go places.
>
>Regards,
>Vinod.
>
>On 4/28/05, Trustin Lee <tr...@gmail.com> wrote:
>  
>
>>Hi,
>>
>>As Vinod and Noel's request, I added support for 'per-session filter
>>chains'.  Besides that, There were some more changes.
>>
>>    
>>
>--snip--
>
>  
>
I did not even have time to express my wish for StartTLS ...

Great job Trustin!
Alex

Re: [mina] Major change: Per-Session filter chains

Posted by Vinod Panicker <vi...@gmail.com>.
Hi Trustin,

Never had a wish get fulfilled that fast!

Great work on the changes.  No doubt that MINA is gonna go places.

Regards,
Vinod.

On 4/28/05, Trustin Lee <tr...@gmail.com> wrote:
> Hi,
> 
> As Vinod and Noel's request, I added support for 'per-session filter
> chains'.  Besides that, There were some more changes.
> 
--snip--