About Question com.enthuware.ets.scbcd.v5.2.286 : last day --question 49
Posted: Sat Jul 09, 2011 3:46 am
Hi,
I have a little interrogation about operations allowed in stateful bean and stateless bean
As the correction suggests, a stateful bean is not allowed do bean operations in its dependency injection methods but a stateless can do it.
what do you mean exactly by bean method/operation ? ie. calling a bean private helper method defined in the bean ?
Why isn't it allowed to do bean operation in a stateful, while it is allowed in a stateless (as in question 1 of the last day test) ?
I thought bean method/operation was only forbidden in a constructor (instance is not a bean)
Regards,
Alex
I have a little interrogation about operations allowed in stateful bean and stateless bean
As the correction suggests, a stateful bean is not allowed do bean operations in its dependency injection methods but a stateless can do it.
what do you mean exactly by bean method/operation ? ie. calling a bean private helper method defined in the bean ?
Why isn't it allowed to do bean operation in a stateful, while it is allowed in a stateless (as in question 1 of the last day test) ?
I thought bean method/operation was only forbidden in a constructor (instance is not a bean)
Regards,
Alex