• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2898
  • Last Modified:

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.
0
technotablet
Asked:
technotablet
  • 2
  • 2
1 Solution
 
CEHJCommented:
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
0
 
technotabletAuthor Commented:
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.
0
 
CEHJCommented:
As i said i don't know Red5, but any smart container should be able to cope with automatic class reloading
0
 
technotabletAuthor Commented:
I have not been able to successfully do it. The only method is deploying the .war file on the server. Red5 takes between 60 seconds to 180 seconds to reload the .war file (it is configurable - by default it is 10 minutes - 600000 secs-, but I reduced it to 60000 secs), but still it is not considered "redeployed". I have to shut down red5 through red5-shutdown.sh, wait for all the connections to get terminated (netstat -napt), and then start red5 through red5.sh. Not an automated solution though.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now