Changes between Version 3 and Version 4 of DJWS
- Timestamp:
- 2011-02-01T14:35:52+01:00 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DJWS
v3 v4 1 = Standalone webserver=1 = '''DJWS: Standalone webserver for rapid application testing''' = 2 2 Inside 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. 3 3 … … 16 16 This 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. 17 17 18 === 2) Your MOLGENIS name determines the deploy URL.===18 === '''2) Your MOLGENIS name determines the deploy URL''' === 19 19 The 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. 20 20 … … 40 40 The 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]. 41 41 42 === 3) Custom servlets===42 === '''3) Custom servlets''' === 43 43 To 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. 44 44