Results 1 to 4 of 4
  1. #1
    Assaf A is offline Member
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    0

    Default 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.

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    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.

  3. #3
    Assaf A is offline Member
    Join Date
    Apr 2008
    Posts
    5
    Rep Power
    0

    Default

    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.

    Thank you

  4. #4
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    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.

Similar Threads

  1. Building to a .jar in Netbeans 6.7.1
    By Gregadeaux in forum New To Java
    Replies: 0
    Last Post: 12-14-2009, 04:00 AM
  2. building a house
    By dc2acgsr99 in forum Java Applets
    Replies: 4
    Last Post: 03-08-2008, 12:18 AM
  3. Building small web application in java for practice.
    By Saurabh321 in forum New To Java
    Replies: 1
    Last Post: 02-01-2008, 04:38 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •