JRebel with Amazon AWS

Any JRebel remote server enabled application (containing rebel-remote.xml) can be used with an Amazon AWS cloud platform instance to take advantage of the remote server support functionality.

Follow the tutorial below to get started with JRebel and Amazon AWS.


Amazon AWS and JRebel tutorial

To get started, you need to sign up with Amazon AWS. Head over to Amazon AWS and click Sign Up to get a free trial account. Once done, you are ready to move on.

  1. Install and configure JRebel on your local workstation.

    1.1 Using Eclipse? Install JRebel for Eclipse and configure JRebel remote server support.

    1.2 Using IntelliJ IDEA? Install JRebel for IntelliJ IDEA and configure JRebel remote server support.

    1.3 Using NetBeans? Install JRebel for NetBeans and configure JRebel remote server support.

  2. Download the standalone JRebel archive here and extract jrebel.jar from it.

    Note

    The JRebel ZIP archive contains two jrebel.jar files:

    • JRebel Legacy Agent is located in the root folder.
    • JRebel 6 Agent is located in the lib folder. Please note that all files from the lib folder are required when using this agent.

    When in doubt, use the JRebel Legacy Agent. For more information, please refer to switching between JRebel Agents.

  3. Upload jrebel.jar to the server instance on Amazon AWS. Make a note of its location.

  4. Add -javaagent:/path/to/jrebel.jar to the server startup parameters. This guarantees that JRebel is started with the server. For specific application server instructions, please refer to the command line startup chapter.

  5. Add -Drebel.remoting_plugin=true to the server startup parameters.

  6. Build and then redeploy your application containing the rebel-remote.xml configuration file to the server.

  7. Configure your project’s Server URL in the IDE to reflect the Amazon AWS application URL.

  8. Press the Synchronize button in your IDE to upload any changes. Your changes should appear like clockwork! Success!