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?
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?
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?
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?