Changes between Version 3 and Version 4 of DJWS


Ignore:
Timestamp:
2011-02-01T14:35:52+01:00 (14 years ago)
Author:
jvelde
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DJWS

    v3 v4  
    1 = Standalone webserver =
     1= '''DJWS: Standalone webserver for rapid application testing''' =
    22Inside the GCC project, you will find a folder called [http://www.molgenis.org/svn/gcc/trunk/handwritten/webserver/ webserver]. This is a fully functional, custom-written webserver in Java, nicknamed the 'DJWS' (danny joeri web server). It currently takes 3 seconds (could be faster if we rework certain servlets) to start up, and 1 second to kill. This means it's exceptionally suitable for rapid testing of web applications, because servers like Tomcat are much more 'heavyweight' and generally much slower to start and stop due to smart caching and other advanced features.
    33
     
    1616This places the datasource settings inside your MolgenisServlet. (see how this works: [http://www.molgenis.org/svn/molgenis/trunk/src/org/molgenis/generators/server/MolgenisServletGen.ftl MolgenisServletGen]) This ALSO works for deploying on Tomcat, so there is no backward compatibility issue.
    1717
    18 === 2) Your MOLGENIS name determines the deploy URL. ===
     18=== '''2) Your MOLGENIS name determines the deploy URL''' ===
    1919The so-called MOLGENIS name of your application is used to form the URL on which it is server. This name taken from the datamodel files, the last one encountered is used. Since our datamodels are shared, you can't just put your app name in one of them.
    2020
     
    4040The MOLGENIS name is now 'myapp', retrieved from the MolgenisServlet by ''!MolgenisServlet.getMolgenisVariantID()'' in the [http://www.molgenis.org/svn/gcc/trunk/handwritten/webserver/WWWServer.java mapper].
    4141
    42 === 3) Custom servlets ===
     42=== '''3) Custom servlets''' ===
    4343To avoid editing hardcoded mappings in the WWWServer [http://www.molgenis.org/svn/gcc/trunk/handwritten/webserver/WWWServer.java mapper] class, we decided to add a dynamic component. Any Java class in handwritten/java/servlets ([http://www.molgenis.org/svn/gcc/trunk/handwritten/java/servlets/ link]) is considered a servlet, and automatically loaded.
    4444