File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes How to patch a web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "How to patch a web application" Watch "How to patch a web application" New topic
Author

How to patch a web application

SriHarsha Reddy
Greenhorn

Joined: Mar 26, 2009
Posts: 6
Hello,
I'm working on a web application and was wondering should there arise a need to patch the application's UI or the back-end (i.e. Java classes) in future is it possible to do it without have to go through the process of rebuilding/recompiling and deploying the complete package.
Not sure what other specifics to post. If you have questions please ask and I'll revert with the information.

Any suggestions/ ideas are welcome.

Thank You
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

I alway go through a complete rebuild and redeployment because it's the only way to keep a proper handle on exactly what is deployed.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
SriHarsha Reddy
Greenhorn

Joined: Mar 26, 2009
Posts: 6
Thought so because Java needs to be compiled (to establish the class links for dependencies) and not interpreted like PHP or other languages.
Thanks for the quick reply Bear.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42263
    
  64
If you can foresee that one or more particular classes are going to change more often than you want to deploy, you could run those as one or more OSGI bundle as part of an embedded OSGI container.


Ping & DNS - my free Android networking tools app
SriHarsha Reddy
Greenhorn

Joined: Mar 26, 2009
Posts: 6
Thanks for the suggestion Ulf. Never worked with the OSGI. Could you point me in the right direction to start?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42263
    
  64
Some introductory material is at http://www.coderanch.com/how-to/java/OSGiLinks. Apache Felix is a good OSGi container; its Karaf subproject is made for embedding.
SriHarsha Reddy
Greenhorn

Joined: Mar 26, 2009
Posts: 6
Many thanks Ulf.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to patch a web application