Frage

Just trying to setup remote deployment of projects to Jboss AS 4.2.1 using Jrebel.

After enabling the JRebel for my project in eclipse along with the remoting feature, it asks for the deployed app's URL in the server. How do I get to know the URL of my project so that I can mention that in the JRebel remoting section?

I thought of looking it up in the JMX console but my project jar will reside in the lib folder of the EAR that's deployed to the server, so I wasn't able to locate it there. Can anyone help me out?

War es hilfreich?

Lösung

JRebel Remoting requires a HTTP facing component to function. It makes use of the HTTP protocol using the same port as the web container. This means zero conf (sort of) and no holes to poke into the firewall, but the downside is that it won't work for apps with no WAR module in them (yet :)).

I assume your app is a jar file inside an ear. All it needs is a war module in that ear. That war does not need to have rebel.xml nor rebel-remote.xml in it. Create the WAR if one does not exist.

The URL would be the address you have to enter in a web browser to access that webapp. For example http://example.org:8080/MyWar/

Also make sure you have the rebel.xml and rebel-remote.xml in the deployed library project (simply creating them in Eclipse is not enough, those two xml files have to end up in the server).

Also, you need to install and activate JRebel on the remote server machine, then start JBoss with the following JVM arguments: -javaagent:path/to/jrebel.jar -Drebel.remoting_plugin=true where path/to/jrebel.jar points to the installed jrebel.jar file

More info: http://zeroturnaround.com/software/jrebel/remoting/

In your case the layout of the EAR could look like this:

- myapp.ear
    - webapp.war
    - someEJB.jar
    - lib/
       - yourApp.jar
          - WEB-INF/classes/
             - rebel.xml
             - rebel-remote.xml

       - someOtherLib.jar

--

Arnel

JRebel Remoting Tech Lead

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top