mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat <forum.maill...@gmail.com>
Subject Re: VMPIPE and IPC
Date Fri, 07 Dec 2007 16:49:15 GMT
I feel deeply sorry to make you feel so uncomforable. MINA benefited me a
lot, however basically i am just
a naive USER of MINA(I only read tutorial, examples and make a server)
Sometimes I also feel sorry to myself since I can only be a user but not a
contributor due to lack of programming skill and no time to
read the all source code. However, I also tried to give some suggestions to
this maillist with my limited knowledge and tried to answer some questions.

Why I asked such a STUPID question because:

>From the example:
SocketAcceptorConfig cfg = new SocketAcceptorConfig();
cfg.getFilterChain().addLast("codec", new ProtocolCodecFilter(new
SumUpProtocolCodecFactory(true)));
acceptor.bind(new InetSocketAddress(SERVER_PORT), new
ServerSessionHandler(), cfg);

I thought that was the one way to configure a filter(need a
xxxAcceptorConfig). But i can't find a corresponding VMAcceptorConfig  in
the API.
I will think more before I raise a question.
Thank you.


On 12/8/07, Trustin Lee <trustin@gmail.com> wrote:
>
> 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 <forum.maillist@gmail.com> wrote:
> > Can you tell me how? I can't find an example. Thanks.
> >
> >
> > On 12/7/07, Trustin Lee <trustin@gmail.com> 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 <forum.maillist@gmail.com> wrote:
> > > > Hi, can I config ExecutorFilter for VMPipe server?
> > > >
> > > >
> > > > On 11/26/07, Trustin Lee <trustin@gmail.com> wrote:
> > > > >
> > > > > On Nov 26, 2007 11:10 AM, mat <forum.maillist@gmail.com> 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
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message