You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Michael Bauroth <Mi...@falcom.de> on 2007/06/12 20:58:36 UTC

[Asyncweb] Get started

Hi,

in the last few month I've written a own server on top of mina. I've 
used many of the supported stuff like Spring and JMX too. I was very 
impressed about the performance and the ease of use of Mina code.

Now I've reached the point, where I need a http counterpart for my 
server to support e.g. HTTP requests, RSS features. I've thought, that 
Asyncweb is the best choice for this part. Unfortunately I see the code, 
the examples and the Spring files but have no idea how to start. Should 
I use the code from Asyncweb or the Http example from within Mina? I 
don't use Maven but instead Eclipse and Ant. Especially the use and 
meaning of the services and the connection to the other Asyncweb stuff 
seems strange to me.

Now my question: Has somebody a short but complete working example, 
which he could send me so that I'm able to understand, how the things 
are working under the hood?

Hopefully
Michael Bauroth





Re: [Asyncweb] Get started

Posted by Trustin Lee <tr...@gmail.com>.
Hi Michael,

On 6/13/07, Michael Bauroth <mi...@falcom.de> wrote:
> Hi Trustin,
>
> thank you for your response. This part is clear so far now ... but how
> are the services (e.g. SessionExample.java) related to this approach
> (and how can I attach one of these services in the lightweight example)?
> Are they equivalent to our codecs and filters?

With the lightweight approach, you have to implement every feature of
HTTP by yourself.  Session is a feature relatively easy to implement
though. :)

Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Re: [Asyncweb] Get started

Posted by Michael Bauroth <mi...@falcom.de>.
Hi Trustin,

thank you for your response. This part is clear so far now ... but how 
are the services (e.g. SessionExample.java) related to this approach 
(and how can I attach one of these services in the lightweight example)? 
Are they equivalent to our codecs and filters?

Best Regards
Michael

Trustin Lee schrieb:
> On 6/13/07, Michael Bauroth <Mi...@falcom.de> wrote:
>> Hi,
>>
>> in the last few month I've written a own server on top of mina. I've
>> used many of the supported stuff like Spring and JMX too. I was very
>> impressed about the performance and the ease of use of Mina code.
>>
>> Now I've reached the point, where I need a http counterpart for my
>> server to support e.g. HTTP requests, RSS features. I've thought, that
>> Asyncweb is the best choice for this part. Unfortunately I see the code,
>> the examples and the Spring files but have no idea how to start. Should
>> I use the code from Asyncweb or the Http example from within Mina? I
>> don't use Maven but instead Eclipse and Ant. Especially the use and
>> meaning of the services and the connection to the other Asyncweb stuff
>> seems strange to me.
> 
> Please start from the 'lightweight' example.  It directly uses
> AsyncWeb HTTP protocol codec, so there will be no much confusion; it's
> simply a MINA application.
> 
> HTH,
> Trustin


Re: [Asyncweb] Get started

Posted by Trustin Lee <tr...@gmail.com>.
On 6/13/07, Michael Bauroth <Mi...@falcom.de> wrote:
> Hi,
>
> in the last few month I've written a own server on top of mina. I've
> used many of the supported stuff like Spring and JMX too. I was very
> impressed about the performance and the ease of use of Mina code.
>
> Now I've reached the point, where I need a http counterpart for my
> server to support e.g. HTTP requests, RSS features. I've thought, that
> Asyncweb is the best choice for this part. Unfortunately I see the code,
> the examples and the Spring files but have no idea how to start. Should
> I use the code from Asyncweb or the Http example from within Mina? I
> don't use Maven but instead Eclipse and Ant. Especially the use and
> meaning of the services and the connection to the other Asyncweb stuff
> seems strange to me.

Please start from the 'lightweight' example.  It directly uses
AsyncWeb HTTP protocol codec, so there will be no much confusion; it's
simply a MINA application.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6