tags:

views:

199

answers:

2

Hi,

I would like to know if its possible to deploy java class files without restarting JBoss server. I am using jboss v4.2.2.

Also, when I try to deploy jsp files, it works fine and server picks up the changes almost instantly.

Thanks a lot in advance :)

A: 

I'm better with Tomcat than JBoss, but it should be possible (as in Tomcat) to restart the application without restarting the app server. If the server has a "development mode" and this is active, then it should be possible to trigger an app restart simply by touching WEB-INF/web.xml, i.e. updating its timestamp. That should get your previously replaced class file loaded.

Carl Smotricz
Thanks for the clue! That actually does the trick. Here is more info for the same:http://community.jboss.org/wiki/RedeployAnApplicationWhenChangeAFileInAnExplodedDeploymentDirectory
A: 

Theoretically, you never have to restart the whole server, you only restart specific applications (ear-s). JBoss (with default settings) will automatically redeploy your ear if it notices any changes in it. Just copy the new version over it.

If you're not using it already, check out JBoss Tools set of eclipse plugins, to simplify whole process of deploys during development: http://www.jboss.org/tools

Robert