java - Using Multiple ApplicationContexts in Spring - question about cleaning up resources -
If I have a main appCtx and then I have a series of separate app CTXs that are the parent of the parent , Then can I relate the child's references to clear memory?
Actually I want to use CTS as an object cache of the child and I have the option to say for a special cash - "I am not using the beans in this cache anymore I want to free the classic by applying the application. Ctx.close () "
I have tried to prototype it, but I am not sure if the reference is made to the child Really in In not deleted - in other words, the beans available for garbage collection after closing?
I know this is a different way of using the spring, but my app is different and I have all the other possibilities (custom scope, singletonbenfilocator, etc.).
Yes, close ()
. Beans will be eligible for garbage collection, provided they have no other references.
Comments
Post a Comment