<a href="http://github.com/asookazian/weld-examples">http://github.com/asookazian/weld-examples</a><br><br>Key points: <br><br>1) added event fire + observer<br>2) added JPA persist to insert into hsqldb<br>3) add the weld-pastecode-ds.xml to server/default/deploy in JBoss 6.0.0.M2<br>
4) setup for JRebel 3 via the javarebel-maven-plugin in ejb module POM:<br><br><br>   &lt;build&gt;<br>      &lt;finalName&gt;weld-translator&lt;/finalName&gt;<br>      &lt;plugins&gt;<br>          &lt;plugin&gt;<br>              &lt;groupId&gt;org.zeroturnaround&lt;/groupId&gt;<br>
              &lt;artifactId&gt;javarebel-maven-plugin&lt;/artifactId&gt;<br>              &lt;version&gt;1.0.5&lt;/version&gt;<br>              &lt;executions&gt;<br>                  &lt;execution&gt;<br>                      &lt;id&gt;generate-rebel-xml&lt;/id&gt;<br>
                      &lt;phase&gt;process-resources&lt;/phase&gt;<br>                      &lt;goals&gt;<br>                          &lt;goal&gt;generate&lt;/goal&gt;<br>                      &lt;/goals&gt;<br>                  &lt;/execution&gt;<br>
              &lt;/executions&gt;<br>          &lt;/plugin&gt;<br>      &lt;/plugins&gt;<br>   &lt;/build&gt;<br><br>The above plugin generates the rebel.xml file which is used by JRebel to know which directories/files to monitor for hot redeploy when the bytecode is modified (new .class files generated on local fileserver).  You need one rebel.xml for each JAR and WAR that you want to hot redeploy enable.  In this case there&#39;s only one for the ejb JAR.<br>
<br>I added the 2nd commandButton to test the adding/deleting of local interface session bean methods (foo2) which is working ok thus far via JRebel 3 hot reload.  Follow the tutorial I wrote here:  <a href="http://community.jboss.org/wiki/JRebel3withSeam2xtutorial">http://community.jboss.org/wiki/JRebel3withSeam2xtutorial</a><br>
<br>VM args: -Drebel.log=true -noverify -javaagent:/opt/jrebel/jrebel/jrebel.jar -Drebel.jboss_plugin=true -Drebel.allow_bytecode_proxy=true -Drebel.log=true -Dprogram.name=&quot;JBossTools: JBoss 6.0 Runtime&quot; -Xms256m -Xmx768m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.endorsed.dirs=&quot;/opt/jboss/jboss-6.0.0.20100216-M2/lib/endorsed&quot;<br>
<br>use nightly version of JRebel: <a href="http://www.zeroturnaround.com/jrebel/next-releases/">http://www.zeroturnaround.com/jrebel/next-releases/</a> <br><br>Enjoy.<br>