Link to home
Start Free TrialLog in
Avatar of technotablet
technotablet

asked on

Uninstall or Undeploy an application in Red5 webapps/ directory

I have created a sample.war file which I load onto the Red5 server in /opt/red5/webapps directory. After waiting for a minute (I've set the time as 60000) the sample.war file is deleted and instead I have a sample/ directory, which I need.

Now the challenge is, if I modify my sample.war file and put it again in /opt/red5/webapps directory, then red5 gives the message "Application sample already installed, please un-install before attempting another install"

If I delete the /opt/red5/webapps/sample directory, then the sample.war is extracted, but my flex front-end still refers to the old installation and follows the old methods. If I restart red5 then the issue is resolved and all is well.

I need to understand how to undeploy an application in Red5, or maybe "redeploy". I'm using Apache Ant and standalone version of Red5 server version 0.8. I'm not using an IDE such as Eclipse. Red5 v0.8 standalone probably uses Jetty.
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

I don't know the software you're using, so the best i can suggest is to automate what you've found to work with an Ant task. That will work
Avatar of technotablet
technotablet

ASKER

I am using Linux (Ubuntu 8.04 server). The java server is Red5 (http://osflash.org/red5) and it uses Jetty (http://jetty.codehaus.org/jetty/) as the web server. It is possible to use Tomcat as the backend instead of jetty, but Red5 by default uses Jetty and I don't want to disturb that. Red5 is used to interact with Adobe Flex.

Through the Ant task I've managed to move the .war file to the red5/webapps/ directory and delete the existing directory of the same application. But I don't want to shutdown Red5 and start it again as it will lead to the application not being available for few moments till the server restarts.
As i said i don't know Red5, but any smart container should be able to cope with automatic class reloading
ASKER CERTIFIED SOLUTION
Avatar of technotablet
technotablet

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial