Background
Creating the most basic of server applications in Red5 is pretty easy. In fact, we're not going to write any code at all. We're going to take advantage of the Red5 Application Generation built into the Red5 Plugin to do all the work for us.
Prerequisites
You will need the complete
Red5 user development environment.
Generating your project
Let's get started.
- Launch Eclipse. You should be in the Java EE perspective, and the Project Explorer view should be opened.
- Right click in the Project Explorer view and choose New -> Dynamic Web Project

- In the New Dynamic Web Project panel, enter a Project Name of "SimpleRed5Project".
- In the Configuration section, click on the Modify button

- In the Project Facets panel that appears, check the box next to Red5 Application Generation, then click the OK button.

- Click on the Finish button

- In the Package Explorer view you should now see two new projects: SimpleRed5Project and SimpleRed5ProjectClient. Believe it or not, but these are fully functional server and client applications! As far as development is concerned, we're done. Let's take a quick look at what was just generated.
What was generated
We have two projects, SimpleRed5Project and SimpleRed5ProjectClient. Examine the SimpleRed5Project server-side project first. Navigate through the project tree to familiarize yourself with the layout.

In the server project, the main things you should focus on are Application.java, which is the core of our new server application, and the contents of WEB-INF. Application.java is actually more complicated than it needs to be for a trivial example. If you wanted to, you could not define any methods at all. Merely extending ApplicationAdapter would be sufficient to have a working -- and quite useful -- server application.

Under WEB-INF you'll see files: red5-web.properties, red5-web.xml, and web.xml. If you've done Tomcat work before then web.xml should look vaguely familiar. The file red5-web.xml is where the Spring configuration for our application is located.
Over in the SimpleRed5ProjectClient project, there is a single source file for the application. If you're familiar with Flex client development then this should be easy to understand, even if you haven't used the NetConnection API before. If you are new to Flex and/or AS3, you should familiarize yourself with Flex after finishing this guide.

In the future you'll learn what each part of these files mean. For now it will be more fulfilling to see the projects in action, so let's give this a test.
Testing your projects
- First, we need to deploy your application to the Red5 server instance. Select the SimpleRed5Project project, right click on it, and choose Debug as -> Debug on Server

- Since this is the first time running the server application, Eclipse will prompt us under which server runtime we wish to run the application. Let's choose the Red5 Server Runtime and check the box next to "Always use this server when running this project", and then click the Finish button.

- Eclipse should then deploy your application to Red5 and start up the server. Remember, if you can an error message that the port is already in use, don't panic. Just stop the server (even it appears stopped) and try to do a debug run of the application again.
- Once the server application is running, the Server view should look like this:

- In the Project Explorer view, right click on the SimpleRed5ProjectClient, and choose Debug As -> Flex Application

- Eclipse should launch your default web browser, and if things went right you should see the following Alert dialog:

That's all there is to it. Now that you can generate Red5 server and client applications, you're ready to start learning what you can do with it.