JRebel and Weblogic as remote server.


Now days developers have cloud environments to run their code, it is possible for JRebel to configure a remote server so it reload your changes on it.

In order to make this possible some steps need to be done.


Once you have this get it and install (unzip jrebel.zip) it on your remote server at a location that you can call JREBEL_HOME.

Once is installed, your weblogic instance start up parameters needs to be updated to contain the following:
-agentpath:$JREBEL_HOME/lib/libjrebel64.so -Drebel.remoting_plugin=true

Once this is done the server will show something as follows:


Now on your local environment you need to install jrebel plugin for it, I use intellij, you can get the specifics for many popular IDEs here https://www.jrebel.com/products/jrebel/quickstart/intellij, just follow the steps for your ide and you will be all set.

You will need 2 files, these are generated by your plugin, per project module.

<?xml version="1.0" encoding="UTF-8"?>
<!--
This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project.
Refer to https://manuals.zeroturnaround.com/jrebel/standalone/config.html for more information.
-->
<application generated-by="eclipse" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd">
<classpath>
<dir name="D:\\shared\\apps\\MyProject\\MyModule\\classes">
</dir>
</classpath>
</application>
view raw rebel.xml hosted with ❤ by GitHub
and

<?xml version="1.0" encoding="UTF-8"?>
<rebel-remote xmlns="http://www.zeroturnaround.com/rebel/remote">
<id>MyProjectMyModule</id>
</rebel-remote>
Once you have this, next step is to configure the remote server.

This is configured within your IDE's plugin, IntelliJ shows as follows:


Once Test connection works fine you are all set..

Your changes will be deployed automatically by JRebel to your remote Server!!

JRebel documentation about this can be found at: https://manuals.jrebel.com/jrebel/remoteserver/serverconfiguration.html#

Comments