Q1. Which two must a bean provider supply for each enterprise bean in the deployment descriptor?
A. Security roles
B. JNDI name of the enterprise bean
C. enterprise bean type: session, entity or message-driven
D. Value of transaction attribute for home and component interface methods.
E. Fully qualified name of the class that implements the enterprise bean's business methods.
Correct answers given are C & E. Why not B?
Q2. What can the bean provider do if the onMessage method encounters application exception (Choose two).
A. Add application exception to method's throws clause.
B. handle exception in method; do not throw the exception
C. wrap and rethrow exception as EJBException
D. wrap and rethrow exception as RemoteException
Question asks for two answers, but I think only one option B is valid.
Q3. Which describes an action that is most appropriate for an Application Assembler to perform?
A. link an enterprise bean reference to a target enterprise bean.
B. bind resource environment reference to actual resource
C. bind resource manager connection factory reference to actual resource factory
D. bind UserTransaction interface to enterprise beans that can use that interface
Q4. Given following code for EB:
public interface ABCHome extends EJBHome {
//some code
public float livingIndex(
String state, float salary) throws RemoteException;
//more code
}
Which stmt is true?
A. The livingIndex method is illegal.
B. The livingIndex method is
EJB 2.0 compliant.