What's the good practice regarding the usage of ServiceManager.release(obj)?
My first guess was that it should be used excessively (lots of try...finally. PITA), as otherwise the container doesn't know which components can be freed/reused... but a quick text search in the tutorial *.java-s showed that it was never used. This may does not mater to much for singletons (unless I want component expiration), but if the service happens to be implemented as "transient", it leaks memory with each lookup() call, as the object will not be released until merlin shuts down if I don't call release(obj)... So when should one call release(obj)? -- Best regards, Daniel Dekany --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
