Wednesday, June 12, 2013

Hot Swap featuring Maven and Maven Embedded web server 'Jetty'

Developer always want to utilize time fruitfully by doing new things instead of doing repeat kinds of work. In J2EE web application development, change made on view pages can be replicate instantly on browser by hard refresh but for instant result of change that made in java class, web server need to restart as it need to redeploy those changes made java classes after java compiler compile it.

So to escape from this, follow Hot Swap concept and implement it featuring Maven and Maven embedded web server Jetty.

maven, hot swap
     
${basedir} - root directory of project
In my implementation,
${maven-compiler.version} -   2.3.2
${java.source.version} - 1.6
${jetty.version} - 8.1.8.v20121106
${jetty.port} - 8080


Enjoy Hot-swap!!!!!!!!!!!

2 comments: