Saturday, November 20, 2010

Patching Java App on Deployment Site?

Application using Java (or any compiled programming language, like Scala, C++) is more cumbersome when you want to patch a running application on a deployment site.

Meaning, while Java development is pretty good when you have an IDE and the development environment setup properly... it starts becoming a nightmare when you want to debug/edit/diagnose your application on a deployment site that has none of those goodies.

Compared to an interpreted programming language, like PHP, Python, Groovy, ... you can change a single line of file and have your changes readily available. Sometimes without restarting the application...

Intermezzo: I say "sometimes" because a moderately complex application will have caches and other infrastructure that can make simple "refresh-driven patching" model impractical. One can say that "caching" is similar to an On-Demand Compiler. The difference is that cache generator is bundled with the application, while Java class/JAR files can only be generated by javac compiler plus the appropriate build system.

(Partial) Alternative #1: Remote Debugging aka JPDA (Java Platform Debugger Architecture)

With this, it's possible to connect to a running application, even remotely, and debug whatever it's doing, still using your trusty IDE on your development laptop.

However, deploying the modified application is still a problem. You can compile and build your application in your laptop, but deploying it to the remote site is a different issue.

(Partial) Alternative #2: Use A (Java EE) Application Server

Whether you use Tomcat, GlassFish, JBoss AS, Jetty, or any other application server... Deploying the application from your development workstation should be trivial.

You need to have the full application sources first, and able to build it. But after you can build it you can deploy relatively easily.

Of course, this still doesn't solve the problem that you can't work without a workstation with proper development setup.
And you can't just "change a file" in the deployed host.

You still need a development setup!

Any suggestions?

4 comments:

Dipen said...

Thanks for providing nice information about java development with Java EE and JPDA

coach outlet store online said...

http://www.coachoutletstoreinc.com/ Coach Outlet Store Online

http://www.michaelkorsoutletmkinc.com/ Michael Kors Outlet

http://www.coachfactoryoutletwebsite.com/ Coach Factory Outlet

http://www.tomsusashoes.com/ Toms Shoes

http://www.cheapjerseysinc.com/ Cheap Jerseys

http://www.michaelkors-bedford.com/ Michael Kors

http://www.coachoutlet-sale.com/ Coach Outlet

http://www.coachfactoryoutletorg.com/ Coach Factory Outlet

http://www.coachoutlet-buy.com/ Coach Outlet

http://www.coachhandbagsonlineoutlet.com/ Coach Handbags

http://www.giuseppezanottionline.com/ Giuseppe Zanotti

http://www.coachfactoryoutlet-handbags.com/ Coach Factory Outlet

http://www.coach-factory-outlet-online.com/ Coach Factory Outlet Online

http://www.coachstoreonline.com/ Coach Outet Store Online

http://www.coachfactoryoutlets2014.com/ Coach Factory Outlet

http://www.michaelkorsoutletonlinemk.com/ Michael Kors Outlet Online

http://www.celineoutlet-online.com/ Celine Outlet

http://www.michaelkors.name/ Michael Kors

http://www.michael-kors-outlet-store.com/ Michael Kors Store

http://www.tomsshoescompany.com/ Tomss Hoes

http://www.pradaoutlet-store.com/ Prada Outlet

http://www.fitflopfootwear.com/ Fitflop Footwear

http://www.celinebags-outlet.com/ Celine Bags

http://www.fitflopsflipflops.com/ Fitflops Flipflops

http://www.fitflopusaonline.com/ Fitflops

http://www.giuseppezanottidesigner.com/ Giuseppe Zanotti Designer

http://www.fitflopflip-flop.com/ Fitflops

http://www.giuseppezanottisneakersmen.com/ Giuseppe Zanotti Sneakersmen

http://www.fitflopsandalssale.com/ Fitflops

Eric Simmons said...

Great and Useful Article.

Online Java Course

Java Online Training

Java Course Online

J2EE training

online J2EE training

Best Recommended books for Spring framework

Java Interview Questions








Java Training Institutes in Chennai

Java Training in Chennai

J2EE Training in Chennai

java j2ee training institutes in chennai

Java Course in Chennai

Getit said...

Download Zapya for PC, Zapya free download, Zapya download, Zapya apk to share files and folders easily.

Post a Comment

 
Copyright 2009 Spring vs Java EE Web Dev. Powered by Blogger Blogger Templates create by Deluxe Templates. WP by Masterplan