In this tutorial, we will discuss about how we can build red5 war file to deploy it on J2EE server as a web application.
Note: We need Eclipse for JEE to follow the below mentioned steps.
1. Download the Red5 source code from the http://red5.googlecode.com/svn/java/server/trunk/ as mentioned at http://code.google.com/p/red5/source/checkout. We can download it either using Tortoise SVN outside eclipse or using subclipse(http://subclipse.tigris.org/) plugin within eclipse.
2. Import the downloaded project to eclipse if downlaoded using the Tortoise SVN.
3. Configure the build using External Tools Configuration as mentioned below:
a. Click on the configuration button as shown below:
b. Configure the build as mentioned below. Within the arguments, we are specifying the directory (dist-war) where the ROOT.war will be generated:
c. Configure the target which we need to run to generate ROOT.war ( webwar ):
d. Click on Apply and than click on Run.
4. After few minutes, we can see the ROOT.war within the dist-war directory placed under eclipse Project Root.
5. We can enjoy deploying Red5 to any application server. Red5 team prefer Tomcat.
6. To deploy the red5 as web application to Tomcat, we need to place the ROOT.war (I prefer rename this to <my-red5-server>.war) within webapps directory. Now start Tomcat.
7. Tomcat will automatically extract the war file and deploy it as web application.
8. We can also use Tomcat Manager to deploy the red5 war file.
Note: We need Eclipse for JEE to follow the below mentioned steps.
1. Download the Red5 source code from the http://red5.googlecode.com/svn/java/server/trunk/ as mentioned at http://code.google.com/p/red5/source/checkout. We can download it either using Tortoise SVN outside eclipse or using subclipse(http://subclipse.tigris.org/) plugin within eclipse.
2. Import the downloaded project to eclipse if downlaoded using the Tortoise SVN.
3. Configure the build using External Tools Configuration as mentioned below:
a. Click on the configuration button as shown below:
c. Configure the target which we need to run to generate ROOT.war ( webwar ):
d. Click on Apply and than click on Run.
4. After few minutes, we can see the ROOT.war within the dist-war directory placed under eclipse Project Root.
5. We can enjoy deploying Red5 to any application server. Red5 team prefer Tomcat.
6. To deploy the red5 as web application to Tomcat, we need to place the ROOT.war (I prefer rename this to <my-red5-server>.war) within webapps directory. Now start Tomcat.
7. Tomcat will automatically extract the war file and deploy it as web application.
8. We can also use Tomcat Manager to deploy the red5 war file.
its vry hplfull
ReplyDeleteDear Chouhan,
ReplyDeletePlease post how to build red5 server using Netbeans IDE to deploy on Glassfish Server...
Thanks and Regards.
Arumugam A.V