1.
Given this code snippet from a JMS message driven bean class X:
When this bean class handles a message, which is correct?
2.
Which statement about message-driven beans is correct?
3.
Given code snippets from two files: Which four code changes, when used together, create a valid JMS message-driven bean? (Choose four)
4.
Which is a valid Postconstruct method in a message-driven bean class?

 
5.
Which statement is correct about a Java EF client of a message driven bean?
6.
Given a set of CMT bean methods with the following transaction attributes:
Method M1 = SUPPORTS
Method M2 = REQUIRED
Method M3 = NOT_SUPPORTED
Method M4 = REQUIRES NEW
And the following method invocation sequence:
Method Ml invokes Method M2
Method M2 invokes Method M3
Method M1 invokes Method M4
If Method Ml is invoked by a method that does NOT have a transaction context, which describes a possible
scenario?
7.
A stateful session bean needs to restore its conversational state to its initial state if the transaction in which
the bean is participating rolls back. Which bean method can be used to do this?
8.
Given a session bean defines:
11. @Stateless (name = "MrBean")
12. public class source SecureBean implements local business, remoteBusiness {

Where LocalBusiness is a local business interface and RemoteBusines is a remote business interface.
The following deployment descriptor entries represent the only security-related metadata:
Which is true about the security roles of clients MrBean?
9.
Suppose a developer wants to create an automatic persistent timer that performs data validation every
hour. Given the following stateless session bean:
@Stateless
Public class OrderVerificationBean {
Private void verificationExternalOrders () {
/ / do something
}
}

What is the minimum modification you would need to make to the bean to create the automatic persistent
timer?
10.
A developer implements a stateless session bean as a timed object. The bean contains two local business
methods with the transaction attribute REQUIRED.
A client begins a UserTransaction and calls the foo local business method. The foo method returns five
seconds later. The client rolls back the transaction and then calls the bar local business method. Assuming
there have been no other client invocations on the stateless session bean, what is the value of the size
variable when control reaches Line 18?