0
What are the callback annotations for stateful bean?

Open 1 Answers 35 Views Technology

What are the callback annotations for stateful bean?

1 Answer

0

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.

by (302k points)
...