Thursday

JRebel version 3.5 released

I6 November released JRebel version 3.5. JRebel is an award winning productivity tool for Java EE development. JRebel maps your project workspace directly to your running application. When a developer makes a change to any class or resource in their IDE the change is immediately reflected in the application, skipping the build and redeploy phases. See the leaflet here
It takes only a few simple steps to configure and works out.
1) Download the installer from the following location
http://www.zeroturnaround.com/jrebel/current
2) Run the setup file
3) Add JRebel plugin in the projects root maven pom.xml as follows:
<plugin>
  <groupId>org.zeroturnaround</groupId>
  <artifactId>jrebel-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>generate-rebel-xml</id>
      <phase>process-resources</phase>
      <goals>
        <goal>generate</goal>
      </goals>
    </execution>
  </executions>
</plugin>
This will generate JRebel configuration file rebel.xml automatically on every build. If you want to generate the rebel.xml manually run mvn jrebel:generate -Drebel.xml.dir=OUTPUT_DIRECTORY

4) Now you have to configure Weblogic application server as follows:
Go to $DOMAIN_HOME/bin and create the file startWeblogic-jrebel.sh with the following contents:
#!/bin/bash
export REBEL_HOME=/Applications/ZeroTurnaround/JRebel

export JAVA_OPTIONS="-noverify -javaagent:$REBEL_HOME/jrebel.jar $JAVA_OPTIONS"
./startWeblogic.sh $@
5) Start the server by the above script and you should see the following JRebel poster on console
6) Now you can deploy your application on weblogic server and JRebel will take care of it. After successful deployment JRebel will notice which module he will monitor with physical path. JRebel will indicate the directories it is monitoring for changes and will issue a "Reloaded class XXX" message every time you use a changed class.
 Also
Post a Comment