Results 1 to 4 of 4
Thread: Building web application
- 01-26-2010, 04:48 PM #1Member
- Join Date
- Apr 2008
- Rep Power
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.
- 01-27-2010, 02:35 AM #2
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.
- 01-27-2010, 11:22 AM #3Member
- Join Date
- Apr 2008
- Rep Power
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.
- 01-27-2010, 09:07 PM #4
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.
- By Gregadeaux in forum New To JavaReplies: 0Last Post: 12-14-2009, 04:00 AM
- By dc2acgsr99 in forum Java AppletsReplies: 4Last Post: 03-08-2008, 12:18 AM
- By Saurabh321 in forum New To JavaReplies: 1Last Post: 02-01-2008, 04:38 PM