If the contents defined in the annotations are updated, the updated contents can be applied to the application using one of the following methods:
Table 12-15 Updatability of each annotation with the reload functionality
Annotation name | Updatability |
---|---|
@PostConstruct | Y |
@PreDestroy | Y |
@Resource | N |
@Resources | N |
@RunAs | N |
@DeclareRoles | Y |
@RolesAllowed | N |
@PermitAll | Y |
@DenyAll | Y |
@Stateless | N |
@Stateful | N |
@Singleton | N |
@DependsOn | Y |
@Startup | Y |
@AccessTimeout | Y |
@Lock | Y |
@ConcurrencyManagement | Y |
@Init | Y |
@Remove | Y |
@AfterBegin | Y |
@BeforeCompletion | Y |
@AfterCompletion | Y |
@Remote | N |
@Local | N |
@RemoteHome | N |
@LocalHome | N |
@LocalBean | N |
@TransactionManagement | Y |
@TransactionAttribute | Y |
@PostActivate | Y |
@PrePassivate | Y |
@Interceptors | Y |
@AroundInvoke | Y |
@ExcludeDefautInterceptors | Y |
@ExcludeClassInterceptors | Y |
@Timeout | N |
@Schedule | N |
@Schedules | N |
@Asynchronous | Y |
@ApplicationException | Y |
@EJB | N |
@EJBs | N |
@WebService | Y |
@WebServiceProvider | Y |
@PersistenceContext | Y |
@PersistenceContexts | Y |
@PersistenceProperty | Y |
@PersistenceUnit | Y |
@PersistenceUnits | Y |
@WebEndpoint | N |
@WebServiceRef | N |