wiki:FrontController

FrontController design

How to

The FrontController takes proper care of security and database connections and is highly recommended. In order to map your application services now, you must specify them in your .properties file under 'services'.

Notice that you should map the file service (core.servlets.FileService?@/) last because the mapping is fall-through. If you experience any problems, please contact a core developer. When in dire need, you can still use the 'WWWServerDeprecated' version to get the old behaviour back. (for now)

Request/response database usage (pseudocode)

Flow in timeLayerLayerLayerWho
ContextSessionRequest
Once:DataSource(ConnPool=100) or EntityManagerFactory() FC init()
Begin <- HttpRequest User
.. <- CreateDatabase(Conn=1) or CreateDatabase(EntMan) FC
.. Subsequent requests: getDatabase, reuse existing connectionless db FC
.. GetConnection(1) or GetEntityManager() FC
.. Open 1 connection, ConnPool-1 FC
.. new Database(connection) -> FC
.. Database (with credentials and 1 conn) FC
.. Response = Service.handleRequest() Application service
.. Close connection, ConnPool+1 FC
.. Send response -> FC
End Get response User
Last modified 13 years ago Last modified on 2011-11-30T09:17:53+01:00