ORMCloseAllSessions()
Closes all ORM sessions.
Requires Extension: Hibernate ORM Engine Extension
ORMCloseAllSessions( );
Returns: void
This function does not take any arguments.
Usage Notes
editCloses all ORM sessions across all datasources for the current request and releases their database connections back to the pool.
Equivalent to calling ORMCloseSession() for each active datasource.
In most cases you don't need to call this — sessions are automatically closed at the end of every request.
Examples
edit// Close all ORM sessions
ormCloseAllSessions();
See also
- ORM
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)