Java Reference
In-Depth Information
▪ Call any method annotated with @PreRemove
▪ For stateful beans, call the remove() method
When the EJB is obtained from a pool, only the business method needs to be executed—the
other six steps can be skipped. Though object pooling is not necessarily useful in the general
case (see Chapter 7 ) , this is one case where the expense of initializing an object makes pool-
ing worthwhile.
Search WWH ::

Custom Search