The Java Persistence API defines a notion of propagation of a persistence context. Which statement is correct?
A. Persistence context propagation is NOT supported for message-driven beans.Which statement about entity manager is true?
A. A container-managed entity manager must be a JTA entity manager.Which statement about the combination of mapping defaults, annotations, and XML descriptors is correct?
A. All mapping annotations must always be processed by the persistence provider.A developer writes client code that runs in a Java EE container and accesses an EJB 3.0 stateful session bean. Which three statements are correct? (Choose three.)
A. The client can obtain a reference to the bean's business interface through JNDI lookups.A Reader entity has a one-to-many, bidirectional relationship with a Book entity. Two Reader entities are persisted, each having two Book entities associated with them. For example, readeM has booka and bookb, while reader2 has bookc
and bookd.
Which query returns a Collection of fewer than four elements?
A. SELECT b.reader FROM Book bGiven the following stateless session bean implementation classes:
10.
@TransactionAttributefJransactionAttributeType. MANDATORY)
11.
public class MySuperj
12.
public void methodAfJO
13.
public void methodBOJ}
14.}
10.©Stateless
11.
public class MyBean extends MySuper implements Mylntj
12.
public void methodAOJ}
13.
14.
@TransactionAttributeO"ransactionAttributeType.REQUIRES_NEW)
15.
public void methodC0 {}
16.}
10.
@RemoteO
11.
public interface Mylntj
12.
public void methodAO;
13.
public void methodB0;
14.
public void methodC0;
15.}
Assuming no other transaction-related metadata, what are the transaction attributes of methodA, methods, and methodC respectively?
A. MANDATORY, MANDATORY, and MANDATORYWhich statement about an entity instance lifecycle is correct?
A. A new entity instance is an instance with a fully populated state.A developer wants to release resources within a stateless session bean class. The cleanup method should be executed by the container before an instance of the class is removed. The deployment descriptor is NOT used. Which three statements are correct? (Choose three.)
A. The cleanup method may declare checked exceptions.A developer writes a stateless session bean FooBean with one remote business interface FooRemote containing one business method foo. Method foo takes a single parameter of application-defined type MyData.
11.
public class MyData implements Java. io.Serializablej
12.
int a;
13.}
Method foo is implemented within the FooBean class as:
11.
public void foo(MyData data) {
12.
data.a = 2;
13.}
Another session bean within the same application has a reference to FooRemote in variable fooRef and calls method foo with the following code:
11.
MyData data = new MyDatafJ;
12.
data.a = 1;
13.
fooRef.foo(data);
14.
System, out. println(data. a);
What is the value of data, a when control reaches Line 14 of the client ?
B. 1The execution of the find method in the following code throws an exception:
11.
em.find(Customer.class, custld);
12.
//Where em is a reference to a extended scoped entity manager.
Which scenario can cause the exception?
A. Thefindmethod was called without a transaction.Nowadays, 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.