> My question is:
>
> In this case the finally block is executed or not? As I understand if the
> finally is not executed, then the factory will never be released and it
> will mean a memory leak.
this finally block gets every time evaluated when you leave your try block.
Therefore the component is every time released.
to verify this for yourself - place a print statement inside your block:
<happyhackingmode>
...
finally {
print("reaching finally block ...");
cocoon.releaseComponent(factory);
}
...
</happyhackingmode>
Frank
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]