wiki:FrontController

Version 1 (modified by jvelde, 13 years ago) (diff)

--

FrontController design

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
.. ConnPool-1 FC
.. Connection conn -> FC
.. Database.useConnection(conn) FC
.. Response = Service.handleRequest() Application service
.. Close connection, ConnPool+1 FC
.. Send response -> FC
End Get response User