Building web application
I built web site for my company using Struts 2 framwork using maven built tool.
Finaly i have a WAR file which i deploy to my Tomcat server. so far so good !!
Now i want to built new screens to my site, so i just add it to my existing one and redeploy the whole application again. i would like to know what can i do in order to make extarnal unit that will be added to my existing application without redeploy it all again ?
Or if i want to make a change for production source without deploy the whole application again.
hm, there is a different framework called 'portlets', such as the apache jetspeed project, where the portlet web application allows you to deploy individual web applications that provide pieces of the larger web site. this takes a bit of planning to set up too.
you can also likely try to just build indiividual web applications. this works well if you are doing more simple pages, that have self-conftained behavior, like a couple of screens.
alternatively you can try to evolve your own plugin kind of facility that lets you drop in an archive file containing the web pages and server side code. but typically everything you would deploy into the web application would need to have the webapplication at least reloaded in the tomcat server instance.
I have been theorizing how cool it would be to create a database back end for all content, struts configuration files, including JSP, css, images, in a web application, , where that some kind of administration wizard would allow for editing of these application features and artifacts, so that the live web site would be just an engine to display the results. sadly this is forever a parking lot project, and as much as i hate to admit it, this complete dynamic change a file and have it just simply work without redeploying a bloat-load of .jar and .war files, or having to restart a tomcat server after so many thousand jsp page recompiles due to being out of perm gen memory, ..is already quite elegantly handled by well, .. PHP.
I would like to try your second choice (plugin kind of facility), how can i learn to do it ? if you can direct me to a good site.
I was reading on this java plugin framework Java Plugin Framework (JPF) - Home
It is basically a Jar file with some API that helps you to create plugins, and a plugin manager such as inside your web application module. I have been meaning to get into using it more than just getting all excited from reading their documentation.
There is a lot of buzz about the OSGI plugin modules, but that is a also a full weight container in its own, and probably a lot of heavy weight and stuffy formalism, and more than would be needed for inventing your own plugin convention for use within a web application.