finalize method in MessageDrivenBean
问题 Message-Driven Bean Class the requirements of a message-driven bean class: It must not define the finalize method. What is the reason for above requirement ? 回答1: If you look in the EJB spec, you will see that it is a requirement for all types of EJB. http://download.oracle.com/otndocs/jcp/ejb-3.1-pfd-oth-JSpec/ I can't find a definitive answer but looking on various Java forums over the last 13 years, you can see answers consistently saying that, because the container will decide the life