| Exam Code/Number: | 1Z0-895Join the discussion |
| Exam Name: | Java EE 6 Enterprise JavaBeans Developer Certified Expert |
| Certification: | Oracle |
| Question Number: | 90 |
| Publish Date: | Nov 28, 2026 |
|
Rating
100%
|
|
Given the following stateful bean:
10.
@Stateful
11.
@TransactionAttribute(TransactionAttributeType.SUPPORTS)
12.
public class VideoBean implements video {
13.
/ / insert code here
14.
public void method () {}
15.
}
Assuming no other transaction-related metadata, which code can be added at line 13 to guarantee that business method methodA will execute only if invoked with an active transaction?
Which is a correct way to define a runtime exception as an EJB 3.x application exception?
Assume you would like to receive notification from the container as a stateless session bean transitions to and from the ready state.
Which of the following life cycle back annotations would you use? (Choose one.)
A developer writes an interceptor class and a stateless session bean: A client acquires an EJB reference to the FooLocal business interface and invokes the foo() method one time. Which describes the output?
A java EE application contains a session bean which uses a security role USER. A group called people is defined an LDAP server. Which two define appropriate EJB role responsibilities? (Choose two.)