It should not take 5 minutes unless your WAR files are very very large. Make sure you allocate enough heap for your JVM too.
You do not need to restart the server when you develop your WARs. JBoss will auto-deploy them from your deploy directory.
If you're using exploded deployments you need to touch the META-INF/web.xml to force redeployment of your WAR directory.
I am a newbie to jboss and but have knowledge in Tomcat.
All changes made in jsp files are reflecting immediately but changes
in java files are not reflecting without restarting jboss.
I have already set JAVA_OPTS as follows in run.bat
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -Xms100m -Xmx250m
I am not clear ablout exploded deployments and web.xml.I will be so
helpful to me if you explain them.
Do you deploy your web applications as a single WAR file or as a *.war directory?
Thanks for your response.
yes I am deploying my web applications inside a *.war directory.
Any thing wrong?
When you want to force a redeploy of your web application you need to touch the web.xml file under the WEB-INF/ directory. You don't need to restart the whole server.
As far as i know the best answer for your problem is using a deploy tool like ant.(I have done that)
That means i only have to write the project (codes), and build.xml for the ant
then when i type ant in the same directory where the build.xml is in it will generate necessary *.jar,*.war and *.ear files.
and when i typed ant deploy it will copy to the necessay directories in the JBOSS
That means only i have to start the server only at once, can build and deploy many times