Using @PostConstruct vs constructor initialization
843830Dec 4 2006 — edited Dec 5 2006I've been reading through an EJB 3 book. I've noticed that lots of the examples of stateful session beans use methods marked with @PostConstruct to do member variable initialization instead of just initializing them in the constructor. There must be a reason for this, right?
Can anybody explain the purpose for this?