Methods to see result fo a code change faster

Posted by Can't Tell on Stack Overflow See other posts from Stack Overflow or by Can't Tell
Published on 2012-03-21T16:27:23Z Indexed on 2012/03/25 11:30 UTC
Read the original article Hit count: 157

Filed under:
|
|

This question came to me when developing using Eclipse.

I use JBoss Application Server and use hot code replacement. But this option requires that the 'build automatically' option to be enabled. This makes Eclipse build the workspace automatically (periodically or when a file is saved?) and for a large code base this takes too much time and processing which makes the machine freeze for a while. Also sometimes an error message is shown saying that hot code replacement failed.

The question that I have is: is there a better way to see the result of a code change?


Currently I have the following two suggestions:

  1. Have unit tests - this will allow to run a single test and see the result of a code change. ( But for a JavaEE application that uses EJBs is it easy to setup unit tests?)

  2. Use OSGi - which allows to add jars to the running system without bringing down the JVM.

Any ideas on above suggestions or any other suggestion or a framework that allows to do this is welcome.

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about java-ee