We'll see how to work with JRebel on Ant-based Java EE projects: a simple web application will be built and modified without any additional compilation. Also, two cases will be explained: when the server is on the development machine and managed by the IDE, and when the server is running on a remote machine. NetBeans will be used as the main IDE. Please note that Ant-based means that the NetBeans uses Ant to handle the project (such as the classical Java SE Ant-based project); we won't use Ant inside the application itself.
The following steps will help you to test the live code injection in a Java EE project: