This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JBoss and the fly likes without shutting down the JBOSS server : Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "without shutting down the JBOSS server :" Watch "without shutting down the JBOSS server :" New topic
Author

without shutting down the JBOSS server :

Poornima Shankar
Greenhorn

Joined: Jul 21, 2005
Posts: 28
What is the best way (without shutting down the JBOSS server ) to deploy in production environment.
I have been using JBOSS 3.X and i had faced several problems while doing hotdeployment (move the deployment to deploy folder without server restart). Since JBOSS 4.X is available, I want to know whether this has been made easier? or is there any other way of deployment without bringing the server down

Thank you
Poornima


"Advice: wise dont want it, Fools never get it"
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8143
    
  52

If you have your application deployed in exploded exploded form, then you can redeploy without having to restart the server as mentioned at:

RedeployAnApplicationWhenChangeAFileInAnExplodedDeploymentDirectory

If your application is deployed as an archive and not in exploded form then you can delete the existing application from the deploy directory and paste the newer version in that place. This will redeploy the application without having to restart the server.


[My Blog] [JavaRanch Journal]
Poornima Shankar
Greenhorn

Joined: Jul 21, 2005
Posts: 28
What will be the state of the application while deployment happens and the server is hit with the request, will this request gets server? I am trying to analyze Jboss4.x in production environment.

Thank you
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8143
    
  52

Until the deployment is completed successfully, all these requests will fail (most likely with 404 errors - No mapping found for url sort of errors). In production environment i believe you would be notifying the users beforehand that the system will be down for some time and during this time you will doing the deployment of your application.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: without shutting down the JBOSS server :
 
Similar Threads
Deploying webservices in Tomcat with Embedded JBoss
JBoss & Tomcat 5.0
purpose of InitialContext?
How to remove a servlet from container?
Struts IDE