Hi Sascha,

MINA is used for Red5 RTMP layer as well, so there are some really
good examples included in our source code. The other best resource,
besides Luke Hubbard ;-) is the MINA mailing list. There are also
examples included on their website and with their distribution.

On 9/12/06, Sascha <[EMAIL PROTECTED]> wrote:
> Hello Chris, i was reading about xml pullparser and also about MINA.
>
> it looks like that should be the way you choose,(i must say that MINA is
>  very big, too big to understand all the source when you walk through SVN)
> i will read the getting started, looks thats easier that try to understand
> the source.
Yeah check out the examples and how Red5 is using it. Don't bother too
much with their source code. It is very low level, and the whole point
of MINA is for you to not have to think about that stuff.

>
> i was thinking about the xml pullparser and MINA,
> and i just want to ask you some questions.
>
> 1) for what will you use the xml-socket?
> client server or server - server usage, i think u will use it for client
> server usage
Well in your case it would be to talk to the client (Flash). So Red5
is the server and Flash is the client. The difference between a MINA
client and a server is really minimal though, so just keep that in
mind.

> 2) what will you do with the datas? will you just have it ready parsed
> as a document or even a object
> for the usage with a webapplication? or will you have any kind of
> backend, may server commands?
>
I would say converting your XML that's coming in, into objects would
be helpful. When I was doing this with my MINA client, it was acting
simply as a proxy between an XMPP server and an HTTP server, so I
didn't need anything but a complete XML String to pass through with an
HTTP request.

> anyway , could u may point me to the MINA class where the incomming
> buffered stream is about to getting read out?
> i would like to see how them handle a dead client or better a not
> closed(not terminated) stream or does MINA use the Buffers
> for something else?

Take a look at the echo server example:
http://svn.apache.org/viewvc/directory/trunks/mina/examples/src/main/java/org/apache/mina/examples/echoserver/

That seems pretty similar to what you need to do. Just keep in mind
that all of this stuff is configurable with Spring as well as through
hard coding as in this example.
>
>

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to