ORMCloseAllSessions()

edit

Closes all ORM sessions.

Requires Extension: Hibernate ORM Engine Extension

ORMCloseAllSessions( );

Returns: void

This function does not take any arguments.

Usage Notes

edit

Closes 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