Hey
Juha Lindfors wrote:
> the spec says for session bean class that it is not allowed to define the
> finalize() method (6.10.2).
>
> But what about the superclass? There's going the be a finalize method
> somewhere, at least on the Object class. Why can't the session bean class
> define the finalize() method then?
Just guessing here, but I don't think that you can assume in general
that it will be called. At all. That's probably the main reason. Any
cleanup code should be done in ejbRemove or unsetEntityContext.
/Rickard
--
Rickard �berg
@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com