Java Reference
In-Depth Information
3.4.6. Lifecycle callbacks
The lifecycle of singleton session beans is the simplest of all of the beans. Once they're
instantiated, they're not destroyed until the application terminates. Complexity in their life-
cycle comes into play only if there are dependencies between beans. During application de-
ployment, the container iterates over the singleton beans checking for dependencies. We'll
discuss dependency specification in a minute. In addition, a bean can also be marked to
auto-instantiate on application deployment. This enables business logic to auto-execute
when an application is started. Let's start by looking at the lifecycle in figure 3.12 :
Figure 3.12. Lifecycle of singleton session beans
Search WWH ::

Custom Search