In 1.x:
VmPipeAcceptor acceptor = ...;
acceptor.getDefaultConfig().getFilterChain().addLast("executor", new
ExecutorFilter(...));
In 2.x:
acceptor.getFilterChain().addLast("executor", new ExecutorFilter(...));
Now here comes some rant...
I am really sorry to say this to you, but how could you ask this kind
of question considering that you already know how to add a filter to
other transports such as socket? You have been participating in this
mailing list for a long time and now you are behaving like you don't
know nothing about how to add a filter. It's too trivial to answer
and simply wastes other community members' time. Are you sure you
really didn't know how to do that, or just didn't want to try a few
lines of code by yourself but copy-and-paste?
I don't want to discourage anyone in the mailing list, but I sometimes
get really discouraged by this kind of post. Yes, myself really loves
this project and I spend much more than so-called full-time for this
project - every day and night literally. I hope you understand my
feeling at this moment and what discourages the committers who spends
enormous amount time for their little baby project.
Trustin
On Dec 8, 2007 12:44 AM, mat <[EMAIL PROTECTED]> wrote:
> Can you tell me how? I can't find an example. Thanks.
>
>
> On 12/7/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
>
> > Yes. Insert an ExecutorFilter to the filter chain like you did for
> > other transports.
> >
> > HTH,
> > Trustin
> >
> > On Dec 8, 2007 12:21 AM, mat <[EMAIL PROTECTED]> wrote:
> > > Hi, can I config ExecutorFilter for VMPipe server?
> > >
> > >
> > > On 11/26/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
> > > >
> > > > On Nov 26, 2007 11:10 AM, mat <[EMAIL PROTECTED]> wrote:
> > > > > The purpose of VM pipe is only for testing? I don't quite understand
> > > > "the
> > > > > performance will be much better, but not better
> > > > > than the direct invocation."
> > > >
> > > > If you have direct access to the server business logic, you can call
> > > > it directly rather than via vm-pipe.
> > > >
> > > > But, if your applications highly depends on MINA and they want to
> > > > communicate with each other, you could use vm-pipe.
> > > >
> > > > Trustin
> > > > --
> > > > what we call human nature is actually human habit
> > > > --
> > > > http://gleamynode.net/
> > > > --
> > > > PGP Key ID: 0x0255ECA6
> > > >
> > >
> >
> >
> >
> > --
> > what we call human nature is actually human habit
> > --
> > http://gleamynode.net/
> > --
> > PGP Key ID: 0x0255ECA6
> >
>
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6