in Technology by

What are the callback annotations for stateful bean?

1 Answer

0 votes
by

Following is the list of callback annotations for stateful bean:

  • @PostConstruct - method is invoked when a bean is created for the first time.

  • @PreDestroy - method is invoked when a bean is removed from the bean pool or is destroyed.

  • @PostActivate - method is invoked when a bean is loaded to be used.

  • @PrePassivate - method is invoked when a bean is put back to bean pool.

Related questions

0 votes
    What are the callback annotations for entity bean?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    What are the callback annotations for message driven bean?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    What are the callback annotations for stateless bean?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    What are the differences between stateful session bean and stateless session bean?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    What is Stateful Session Bean in EJB?...
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Is there a project that maintains annotations for patterns? For example, when I write a builder, I want ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 13, 2022 in Education by JackTerrance
0 votes
    What are the Basic Annotations that Spring Boot Offers?...
asked Jul 7, 2021 in Technology by JackTerrance
0 votes
    Annotations which are applied to other annotations are called meta annotations. (a) True (b) False The question ... Annotations of Java Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    Stateful Multilayer firewalls are also called ____________ (a) first generation firewalls (b) second generation firewalls (c) ... and answers pdf, mcq on Cyber Security pdf,...
asked Nov 4, 2021 in Education by JackTerrance
0 votes
    Explain @javax.ejb.Stateful annotation....
asked Nov 7, 2020 in Technology by JackTerrance
0 votes
    Which one of the following annotations is not used in Hibernate? (a) @Entity (b) @Column (c) @Basic (d) ... & Annotations of Java Select the correct answer from above options...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    Which one of the following annotations is not used in Hibernate? (a) @Entity (b) @Column (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    I've Struts 1 action class (actions are singletons by design in struts 1) that needs to collect some ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
0 votes
    I've Struts 1 action class (actions are singletons by design in struts 1) that needs to collect some ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 13, 2022 in Education by JackTerrance
...