ZeroTurnaround Support Forum » JRebel Support

JBoss Seam and JRebel integration

(7 posts)
  • Started 7 months ago by negascout
  • Latest reply from lauri
  • 1 Members Subscribed To Topic

  1. negascout

    Member
    Posts: 3

    Hello,

    could anybody please help me? Im running into difficulties making JRebel work with Seam eventhough Ive spent some time googling on this...

    The problem:
    Im using Eclipse 3.5.1 and JBoss Tools and Im using a seam-gen generated project structure, where exactly should I put the rebel.xml file for JRebel to work correctly? As for the server(actually JBoss 4.2.3 GA, can I also use JBoss 6.0.0.M1?), i get to see the banned about the JRebel plugin usage, so guess that is okay ...

    Thank you very much for helping to solve my problem, the redeploys and constant application restarts are just crazy time-consuming.
    Robert

    Posted 7 months ago #
  2. lauri

    Member
    Posts: 480

    @negascout
    You should place rebel.xml so that it will end up in WEB-INF/classes for wars or at the root for jars. Usually either resources or source folder is the correct place. We haven't tested JBoss 6.0.0.M1 so you'll just have to try if it works (it should unless it has different classloading mechanics than previous versions).

    Posted 7 months ago #
  3. negascout

    Member
    Posts: 3

    Thanks for your help -but Im still running into trouble.So far,jrebel works for Seam Components - if I change some code for a method, the change gets picked up ok. But if I add a new method and reference it in the web tier, an application restart is still needed. My question would be, if JRebel can also deal with this, provided it is configured correctly.

    Im using an exploded EAR for deployment. I have placed rebel.xml to every possiible configuration directory that is in my project, but I still couldnt get rebel.xml to the right place -WEB-INF/classes for wars or at the root for jars. Could this be the cause for not being able to add methods to Seam Components at runtime? Or are more information needed to solve this problem? If so, please let me know, I would really want to use JRebel up to its full potential.

    Thank you very much in advance,
    Robert

    Posted 7 months ago #
  4. lauri

    Member
    Posts: 480

    If all else fails then you can always modify the seam generated build.xml to place rebel.xml to the correct location. When you have configured jrebel correctly you should see something like JRebel: Reloading class 'test.Test'. printed to console on the call to the modified class. Currently jrebel does not support adding new methods to the ejb interfaces, but this will be supported soon in the nightly builds at leas for jboss.

    Posted 7 months ago #
  5. negascout

    Member
    Posts: 3

    I can see the Reloading class 'test.Test' when I make changes in the code! And Im looking forward to the new releases:)

    Thank you for your interest
    Robert

    Posted 7 months ago #
  6. Hi, I have Jboss out eclipse IDE, what about it?

    Posted 5 months ago #
  7. lauri

    Member
    Posts: 480

    Jrebel doesn't care what ide is used, just add the necessary jvm arguments.

    Posted 5 months ago #

RSS feed for this topic

Reply

(required)

(required)

(optional)

(required)

Allowed markup: a blockquote code em strong ul ol li.
Put code in between `backticks`.

Olark Livehelp