Question 50 / 57:
Suppose that an EJB client code is invoking the calculateSales() method on the SalesBean class.
Assuming the the bean is not instantiated yet by the container.
What could be printed from such invocation?
Choose 2
@Stateful
public class SalesBean2 implements SalesBeanLocal {
public SalesBean2() {
System.out.println("Constructor");
}
public void calculateSales() {
System.out.println("calculateSales");
}
@PostConstruct
public void m1() {
System.out.println("PostConstruct");
}
@PreDestroy
public void m2() {
System.out.println("PreDestroy");
}
@PrePassivate
public void m3() {
System.out.println("PrePassivate");
}
@PostActivate
public void m4() {
System.out.println("PostActivate");
}
}