JRebel How-to: Using JRebel with JBoss Developer Studio and JBoss AS 7.1JRebel Tutorial: Using JRebel in JBoss Developer StudioIn this tutorial you will learn how to install, configure and use JRebel in JBoss Developer studio with JBoss application server v7.1.InstallationSample Project: KitchensinkJRebel in Action InstallationOpen JBoss Developer StudioOpen JBoss Central view (Help -> JBoss Central), if it isn’t already openGo to the Software/Update tabType in “JRebel” in the Search boxClick checkbox next to JRebel and click Install button - Install pop-up will appearSelect “JRebel” and “JRebel for Java EE” plugins from the listFollow instructions and agree to the License AgreementOnce the installation is complete, restart the IDE in order for the changes to take effect.After you restart the IDE, if you do now have JRebel license yet, the plugin will notify you about this sad fact and ask for registration. Click on the link in the red pop-up and proceed with the license setup.Please see the reference manual for the license activation options. Sample Project: KitchensinkIn JBoss Central view, in Project Examples area, under JBoss Quickstarts list, click Kitchensink. In the dialog that appears, click Finish and an example Maven project will be generated into the workspace. The default name for the project is jboss-as-kitchensink.JRebel ConfigurationApply JRebel configuration to projectTo configure project to work with JRebel:Open JRebel Config Center (Help -> JRebel Config Center)Click on the box next to jboss-as-kitchensink to add JRebel nature Adding JRebel nature to the project will automatically generate rebel.xml configuration file and add it to the project. See reference manual for more information about the configuration file.You can also configure JRebel to work with the project by right clicking on the project itself, scrolling down to the JRebel tab and clicking "Add JRebel Nature".Server configurationTo configure server:Open JRebel Config Center (Help -> JRebel Config Center)Click on the checkbox next to the server to enable JRebel for the serverJRebel in ActionOne you start the server with JRebel agent enabled, you should see JRebel specific messages: This is the JRebel Welcome Banner. It details the version of JRebel you are currently using, whether there is an update, the kind of license you are using, how long until it expires, disabled plugins etc.You will also see JRebel log messages showing what specific directories JRebel is monitoring, listed in rebel.xml configuration file.Now let's make some changes!This is the current new member registration form with sections allotted for name, email and phone number:Add a new section for address:Open up the Member.java file and add the new address field with the appropriate getter and setter. We want to make it a String with some restrictions.Open up the index.xhtml file and add the address input to the Member Registration form, "reg".In the same file, add the address column to the Members data table.Now, in order for John Smith to be correctly inserted into the database, navigate to your import.sql file and add "address" to the Member constructor and an address to the Member John Smith.Refresh your browser and you should see the updated form object and data table. In the console you'll notice that a few things were logged. JRebel reloaded the Member class and printed a notification about the new non-static field "address" in the Member class. The Weld and Hibernate framework integration then kicked in. These plugins allowed JRebel to reconfigure the newMember and null beans and the Hibernate SessionFactory.Add some new members:Now that we have some new members to work with, let's expand on our current REST URL so we can look up individual members using an email address:Open up MemberResourceRESTService.java and add the new method lookupMemberByEmail.Luckily, there is already a findByEmail method in the MemberRepository.java, so we can skip that step.Open up index.xhtml. At the bottom of the file add a new note and url to the footer, like so:Save and refresh the browserAs you can see in the console, JRebel reloaded and reinitialized the MemberResourceRESTService class and reconfigured some beans.Now give it a try! Add one of your current member's email at the end of the current url. You'll see the requested member's information appear in the browser.