A few more...
Here's my attempt at a *matching* drag-and-drop question. These are off the top of my head again, so I can't guarantee they're perfect
============================
QUESTION ONE:
Match the operation in list ONE with the method in list TWO in which that operation can be performed, for a stateful session bean:
LIST ONE: Operations (things you want to do)
1) invoke the SessionContext.setRollbackOnly()
2) invoke the UserTransaction.setRollbackOnly()
3) access this bean's own EJBObject interface
4) access this bean's own home interface
5) access a reference to another
EJB LIST TWO: Bean methods in which the operations from list one can be performed:
A) ejbCreate
B) afterBegin
C) business method
D) setSessionContext
E) afterCompletion
Note: There *may* be more than one correct answer!
===========================
QUESTION TWO:
In what order will the following events in a stateful session bean's lifecycle occur? Assume the client already has a reference to a bean's home object, and needs to invoke a business method on a bean.
(place a number next to each one)
A) Client invokes a business method
B) ejbCreate invoked on the bean
C) transaction committed
D) afterCompletion is called
E) afterBegin is called
F) beforeCompletion is called
G) business method invoked on the bean
H) setSessionContext invoked on the bean
I) bean constructor invoked
J) client invokes create on the home
=========================
cheers,
Kathy