Dave
Dave

Reputation: 21924

Modify Java classes from Eclipse in running servlet?

I have a multi-module Maven project that is a Java web application. I am using Eclipse as my IDE and am wondering if there is anything in WTP that will allow me to add/delete/modify Java classes without doing

Edit: I've seen JRebel and watched some videos, but it doesn't support CXF or GWT and it seems to me that Eclipse/WTP should do something like this out of the box, yes?

Upvotes: 1

Views: 300

Answers (3)

Adisesha
Adisesha

Reputation: 5258

Check Dynamic Code Evolution VM (DCEVM). You do not need to install anything specific in eclipse. Check if it works with CXF. GWT already supports hot deployments in hosted mode, with some limitations. For example, if your server is Jboss, check this.

Upvotes: 1

Anton Arhipov
Anton Arhipov

Reputation: 6591

JRebel does support CXF and GWT - refer to the features page http://www.zeroturnaround.com/jrebel/features/frameworks/

Upvotes: 2

Deco
Deco

Reputation: 3321

Most web containers allow you to perform hot code replacements but there are a number of limitations, such as:

  • Changing the class/method signature will not work - you have to redeploy and restart
  • Changing a "stack frame" call (e.g. Main) generally will not work either.

Check out this link for instructions on how to set it up for WTP.

Upvotes: 1

Related Questions