@PostConstruct
The @PostConstruct annotation makes it possible to run initialization
code just before the EJB is put into service.
@PostConstruct
public void init() {
// put your initialization code here.
}
Note that the @PostConstruct is only run once, so if you are exposing
a session bean that gets passivated and subsequently activated this
code will not run!
Up