This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
How are your classes packaged and deployed? With an EAR file? Or within an exploded EAR directory? If you have an EAR file, replacing it with an updated version will redeploy it. If you have an exploded directory, 'touch' the META-INF/application.xml file - this will cause the app to be redeployed.
Peter, We use Ant to move the files to the deploy directory and use touch task to re-start the server, to pick the new files.
But i would liked to know is there anyway we can make the app to pick the new class file without re-starting (through touch task) the application.
The main purpose of why i am looking forward is, restarting the app takes 8 mins. Since we have lot of EJB's it takes some time to undeploy and re-deploy the EJB's. And also EJB's are not changed frequently. But we work at the web layer (servlet or Action class). So i would want to know is there any way we can load the latest class file without re-starting the server.