views:

36

answers:

1

I have a flash app which will send/receive a constant stream of data.

the flash app should open a connection to the Java server, keep it open, and attempt to reconnect on socket failure.

Are there any good APIs that offer this functionality? Smartfox Server is one option, but if I had my way I'd embed an API in my app rather than contort my app to run under Smartfox.

Ideally it would offer an API on the flash end, another on the Java end, and efficiently (java nio preferably) handle the network component in between. I would just define handlers on both the client & server.

+2  A: 

You could use BlazeDS. It's an open source RTMP server from Adobe written in Java. You don't need any special library on the client side as RTMP is native in Flash.

There are many examples on the web: here , here.

Peter Knego