My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for

JRebel  
JRebel Extension
Extension
Updated Mar 21, 2011 by scotthernandez

Introduction

This is a simple extension to Morphia to make classes being re-mapped to morphia, once they are reloaded by JRebel.

Prerequisits

Of course you need to run JRebel (http://zeroturnaround.com) for this extension to be useful. On top of that, you need to tell JRebel about the Plugin. In order to do that, add the following two new Elements to the VM startup command:

-Drebel.morphia=true -Drebel.plugins=/path/to/morphia-jrebel-plug-1.0-SNAPSHOT.jar

If you´re using Eclipse with the JRebel Plugin this can be skipped and instead configured in the Agent Settings GUI.

  • Choose Window->Prefs->JRebel
  • Click Agent Settings
  • Choose Plugins Tab
  • Click custom plugins
  • add the plugin jar, OK
  • Choose custom, add key "rebel.morphia" with value of "true"

Using

Register the Extension to your Morphia instance

new JRebelExtension(morphia);

Dependencies

Maven

  • If you use Maven2 to manage your project, you can reference the Extension as a dependency.
    • Repo: http://morphia.googlecode.com/svn/mavenrepo/
    • Project Settings:
    • <dependency>
      	<groupId>com.google.code.morphia</groupId>
      	<artifactId>morphia-jrebel-plug</artifactId>
      	<version>1.0-SNAPSHOT</version>
      </dependency>
Comment by bland...@gmail.com, Feb 17, 2012

I wonder, why jrebel extension /src/ directory is empty, no any class present there to build and try Jrebel ext plugin?


Sign in to add a comment
Powered by Google Project Hosting