C. Clients of a message destination need to know that the destination is listened to byapool of message consumers. D. Clients of a message destination do NOT needto knowthat the destination is listened to by a message-driven bean. Answer: A, D QUESTION: 300 Which two statements are true? (Choose two.) A. Alltypes ofenterprise beans can be transaction-aware. B. Typically, fine-grained objects, such as an employee record, should be remotely accessible. C. Theclientview ofanygiven enterprise bean will be consistent acrossall EJB3.0 containers withouttheneed to recompile the bean. D. As long as a given enterprise bean is NOT recompiled, its security attributes are guaranteed to be consistent across all EJB 3.0 containers in which it is deployed. Answer: A, C QUESTION: 301 A session bean calls the setRollbackOnly method on the EJBContext interface within a business method with an active transaction. Which two are correct? (Choose two.) A. The transaction timeout is immediately disabled. B. The container will ensure that the transaction will never commit. 133
C. The bean must have started the current transaction for this to be legal. D. The bean must have bean-managed transaction demarcation for this to be legal. E. Thebean must have container-managed transaction demarcation for this to be legal. Answer: B, E QUESTION: 302 A developer is working on a user registration application using EJB 3.0. A business method registerUser in stateless session bean RegistrationBean performs the user registration. The registerUser method executes in a transaction context started by the client. If some invalid user data causes the registration to fail, the client invokes registerUser again with corrected data using the same transaction. Which design can meet this requirement?
You've reached the end of your free preview.
Want to read all 8 pages?
- Fall '20