Hello,

Note that with your approach, you need to be very careful about a special kind of memory leak: If the registry is global across all applications, it means it will hold strong references to the classes of the application, which might hold references to classes loaded by application class loaders. If this happends, when you will stop an application, tomcat lets the application class loader to be garbage collected, in order to collect all objects (and classes) of the application. But in your case, the application class loader will never be garbage collected because of references from Hivemind registry. This means that all web application you ever started (and stopped) in Tomcat will remain in memory, and will never be garbage collected.

Regards,
Catalin

Dmitry Kozakov wrote:

Hi
Hivemind has filter which can be set for web application
and can be used for working with registry.
But I want to setup Registry for all application which will be started
under Tomcat. It is possible to write LifecycleListener for Tomcat
and init/shutdown Registry there. But how to access that registry
in the web applications.  I did not find any solutions. May be somebody
confront with this problem?

Best Regards,
    Dmitry





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to