The Java Persistent API defines certain rules for persistent entities. These rules are required by the persistent provider to manage entities at runtime. Which statement is correct, assuming NO mapping descriptor is used?
A. Entitiesmust extenda persistent base class.Within a Java EE environment, which annotation can be used to inject an entity manager factory?
A. ©EntityGiven the following stateful session bean:
10.
@Stateful
11.
@TransactionAttributefJransactionAttributeType. SUPPORTS)
12.
public class VideoBean implements Video {
13.
// insert code here
14.
public void methodAO {}
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?
A. @TransactionAttributefJConsider a deep inheritance hierarchy consisting of Java Persistence entity classes, non- entities, and mapped superclasses. Which statement is correct, assuming NO mapping descriptor is present?
A. An entity class must NOT inherit from a non-entity class.The ejb-jar file format is a contract between which two EJB role pairs? (Choose two.)
A. Deployer and System AdministratorA developer writes an interceptor class called Foolnterceptor containing the following Aroundlnvoke method:
11.
@Aroundlnvoke
12.
public Object intercept(lnvocationContext ctx) {
13.
return "intercepted"; 14.}
Foolnterceptor is applied to a business method in a stateless session bean:
11.
@lnterceptors(Foolnterceptor.class)
12.
public String testzero(int i) {
13.
return (i == 0) ? "zero""not zero";
14.
}
Which describes the result when a client invokes the testzero method with a value of 1?
A. The intercept method is NEVER invoked.Which two can be specified by both the Bean Provider and the Application Assembler? (Choose two.)
A. security rolesGiven:
11.
@PersistenceContext EntityManager em;
12.
public boolean test(Order o) {
13.
boolean b = false;
14.
o = em.merge(o); 15 em.remove(o);
16.
o = em.merge(o);
17.
b = em.contains(o);
18.
return b;
19.}
Which statement is correct?
A. The method will return TRUE.Which two statements are correct about EJB 3.0 stateful session beans and stateless session beans? (Choose two.)
A. Bothcan have multiple remote and local business interfaces.Given a stateless session bean with container-managed transaction demarcation, from which two methods can a developer access another enterprise bean? (Choose two.)
A. beanconstructorNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-860 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.