Client activation

This section provides details on how to activate clients with License Server licensing. For more general information regarding JRebel, please consult the JRebel documentation.

Note

Head over here for XRebel activation and license usage


Managed license activation rules

The managed license can be shared between devices. The same license cannot be used on different devices simultaneously. The following restrictions apply:

  • The previous device loses its JRebel seat within 60 minutes.
  • The license can be switched between devices only every 60 minutes.

Offline seats

The offline seat mode allows License Server users to go offline for a predefined period of time. This is useful when working away from the office or in an offline environment. During this time, the active offline seat is locked on the License Server and JRebel can be used without an active License Server connection.

The offline seat mode has to be activated manually in the JRebel IDE plugin or using a command line. Taking the seat offline has to happen while still connected to the License Server. An offline seat will cease working as soon as the predefined duration elapses or once the user manually disables offline seat mode.


Eclipse

  1. Open Help > JRebel Configuration.
  2. Locate Licensing.
  3. Set the desired duration and press Work offline.

You can cancel offline seat mode by pressing Work online whenever License Server connection is restored.


IntelliJ IDEA

  1. Open File > Settings > JRebel > Offline mode.
  2. Set the desired duration and press Work offline.

You can cancel offline seat mode by pressing Work online whenever License Server connection is restored.


NetBeans

  1. Open Tools > Options > JRebel > Offline.
  2. Set the desired duration and press Work offline.

You can cancel offline seat mode by pressing Work online whenever License Server connection is restored.


Offline seat with standalone configuration

License Server licensing requires a connection to be maintained to the License Server at all times. If you need to work offline, you can acquire an offline seat:

$ java -Drebel.license.url=http://your.server:9000/01234abcd01234abcd -jar jrebel.jar -go-offline

The default offline seat will last for 24 hours. You can ask for an offline seat for a period up to 15 days by providing the desired number of days as the last argument:

$ java -Drebel.license.url=http://your.server:9000/01234abcd01234abcd -jar jrebel.jar -go-offline 7

Be aware that this will keep one license seat occupied on the server-side for the entire offline period. To delete your offline seat and release the seat for others to use, use -go-online. This seat is reserved on the License Server until offline mode expiration or until the user manually deletes the offline seat.

$ java -Drebel.license.url=http://your.server:9000/01234abcd01234abcd -jar jrebel.jar -go-online

Should the -go-online command fail for some reason, you may consider manually deleting the offline seat. Use the -delete-offline command to force the deletion of your local offline seat.

Warning

Please note that this command should only be used as a last resort. Manually deleting an offline seat will remove the license from the local machine, but the seat will not be freed up on the server.

$ java -Drebel.license.url=http://your.server:9000/01234abcd01234abcd -jar jrebel.jar -delete-offline

Activating JRebel standalone with License Server

JRebel can be activated with License Server licensing with the command line command -activate, i.e.:

$ java -jar jrebel.jar -activate http://license-server.mycompany.com/1a2b-3c4d-e56f-7gh8 john@mycompany.com

Tip

Alternatively, you can use the standalone activation wizard to activate standalone JRebel (executed by the script at bin/activate-gui.[sh|cmd]).

Another way to activate JRebel with License Server licensing is by directly setting the properties either in jrebel.properties file or on command line. Set the property rebel.license.url to your License Server Group URL and property rebel.license.email to your email:

rebel.license.url=http://license-server.mycompany.com/1a2b-3c4d-e56f-7gh8
rebel.license.email=john@mycompany.com

Standalone configuration options

Customize username

License Server displays the JRebel user name. This defaults to the operating system user name, but can be customized as:

rebel.user=john@company.com

Average deploy time

License Server uses the average deploy time reported by JRebel to calculate time saved. To specify the average deploy time (in seconds):

rebel.stats.time=120