Question 49 / 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?
@Stateless
public class SalesBean implements SalesBeanLocal {
public SalesBean() {
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");
}
}