Portlet Factory, Version 6.1.2
Freeing linked models
In some cases you may want to free the reference to a linked model so that the JVM garbage collection will reclaim the memory used by the linked model. The following is a list of a few rules when freeing linked model.
- All linked models as well as parent models will be freed when the session times out.
- Non-singleton linked models will be automatically freed when the parent model is explicitly freed.
- Singleton linked models will not be automatically freed when the parent model is explicitly freed. This is because singleton models can be shared across models in the session, and automatically freeing them with the parent may cause undesired results. The application developer can use the freeLinkedModel(..) method to explicitly free singleton or non-singleton linked models (see API section).
Parent topic: Linked models
Library | Support |