Flow in time | Layer | Layer | Layer | Who
|
| Context | Session | Request |
|
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
|
.. | ConnPool+1 | <- Close connection | | FC
|
.. | | Send response -> | | FC
|
End | | | Get response | User
|