3

Every time when our development team modifies a Web application's source code, we need to build a EAR, login to WebSphere's deployment manager, update the the whole application in our testing server and start the application again.

But sometimes the change may only involve a single Java file. Are there any alternative ways to deploy the change to the testing server to speed up our development life cycle like just copy the XXX.class to a particular location in the WebSphere folder?

Dicky Ho
  • 244
  • 3
  • 15
  • ... and if you follow CTRL+S style of hot deployment then you need to have EAR file in exploded form i.e. have folders even through their names end with .jar and .war or .ear. This is just an idea, it may not be super helpful to you. – Sanjeev Dhiman Aug 25 '16 at 07:00
  • Which version of WebSphere, and is it "Full profile" or Liberty? – dbreaux Aug 25 '16 at 15:02
  • I honestly don't know if I should write a new answer here, or just point at mine from a different question, but with same steps as possible answers: http://stackoverflow.com/a/10852395/796761 – dbreaux Aug 25 '16 at 15:52

2 Answers2

1

You can do what is known as Hot Deployment for Websphere applications. But in this you would not be changing/deploying a .class file, at the very least you would need a .jar file which is changing. But the procedure to have this set up is closely bound with the Application in question. And it cannot be put into a single post on StackOverflow, since it would belong on a tutorial website and this is not one.

I suggest you read about Hot Deployment on IBM Knowledge center. This would help you cause, if you are willing to follow the steps in the the page.

Note: Not affiliated to IBM.

iMan
  • 456
  • 1
  • 7
  • 18
  • Actually, this Knowledge Center article might be a more general answer to the question: "Ways to update JavaEE applications" http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/crun_app_upgrade.html – dbreaux Aug 25 '16 at 16:19
0

Just a further suggestion: Use Hot Deployment procedure as advised above and documented here.

https://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/trun_app_hotupgrade.html

In step 4 set the "Polling interval for updated files" to zero (0) to disable dynamic reloading. This will entail that, after hot deploying an application artifact, you must restart the application to realize the change rather than rely on the application server to poll for changes through the deployed modules and then restart either a web module or the entire application, depending on which part changed. Manually restarting the application is generally faster than dynamic reloading.

Finally, setting the polling interval to zero will not impact the dynamic reloading of JSPs.

Dave Zavala
  • 171
  • 3