@javax.ejb.Startup: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * EJB Annotations =Overview= If declared on a Singleton bean, the container must initialize t...") |
No edit summary |
||
Line 6: | Line 6: | ||
If declared on a [[Singleton Session EJB#Lifecycle|Singleton bean]], the container must initialize the Singleton bean during the application startup sequence. | If declared on a [[Singleton Session EJB#Lifecycle|Singleton bean]], the container must initialize the Singleton bean during the application startup sequence. | ||
<pre> | |||
@Startup | |||
@Singleton | |||
public class MySingleton ... { | |||
... | |||
} | |||
</pre> |
Latest revision as of 18:59, 27 April 2017
Internal
Overview
If declared on a Singleton bean, the container must initialize the Singleton bean during the application startup sequence.
@Startup @Singleton public class MySingleton ... { ... }