Which tx attribute would you use to ensure the
EJB Container invoked a bean with a valid tx context??
Correct answer given :- Required.
What's wrong with RequiredNew,mandatory ???
It says, RequiredNew tx attribute indicates to the container that a new tx must be started for that method ( as
opposed to to using an existing tx context).
But my ques is.. still it invokes the bean in a meaningful tx context , as asked in the ques.
----------------------------------------------------------------------------
Defined two methods
aMethod(){..}
bMethod(){..}
Defined in DD
<transaction-type>RequiresNew</transaction-type> .. for aMethod
<transaction-type>Mandatory</transaction-type> .. for bMethod
Correct answer given... tx attribue for both aMethod() and bMethod() are valid
How...??? to specify a tx attribue, we use <trans-attribue> !!!
----------------------------------------------------------------------------
Which of the following are correct (choose 2)
a. All Session beans have conversational state.
b. session beans involved in tx cannot be passivated.
c. session beans involved in tx can be passivated.
d. Stateful SB can be either retrieved via finder methods or create method in home interface
e. Stateful SB can be either retrieved via finder methods or create method in component interface
Correct answer given : - b,d
How can d be correct.. can we use finder methods for session beans ???
----------------------------------------------------------------------------
[ August 05, 2004: Message edited by: Giju George ]