<font size=2 face="sans-serif">Hello<br>
<br>
I have a servlet that acquires two instances of a dependent scoped bean.
The first is aquired by @Inject Instance&lt;CdiBean&gt; the second is acquired
via CDI.current()</font><font size=2 face="Monospace">.select</font><font size=2 face="sans-serif">(CdiBean.class).get().
<br>
<br>
I can see that the first instance's @PreDestroy is called when I shut down
the application. However @PreDestroy is not called on the instance acquired
CDI.current. Here is the source: <br>
<br>
<br>
<br>
My question is, is this behaviour intentional? And if it is, can you please
link me to the appropriate part of the spec that says when we should expect
a @Dependent bean created by CDI.current to be destroyed? I have a customer
concerned about this causing a potential memory leak. <br>
<br>
Regards<br>
Benjamin<br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU<br>
</font>